Automattic/jetpack

Add "adapt_container_width" to facebook likebox widget

オープン

#9,889 opened on 2018/07/10

 (5 件のコメント) (0 件のリアクション) (1 人の担当者)PHP (877 件のフォーク)user submission
EnhancementGood For CommunityHacktoberfest[Feature] Extra Sidebar Widgets[Pri] Low

Repository metrics

Stars
 (1,808 個のスター)
PR merge metrics
 (平均マージ 4d 5h) (30d で 645 merged PRs)

説明

Facebook allows you to lower the width of the widget and make it adaptive. Unfortunately, this can not be played using the jetpack widget

Steps to reproduce the issue

  1. Create facebook likebox widget
  2. Set width to "0"

What I expected

The widget adapts to the width of the container

<div class="fb-page" data-adapt-container-width="true">...</div>

What happened instead

The widget has a static minimum width

<div class="fb-page" width="180" data-adapt-container-width="false">...</div>

コントリビューターガイド