Automattic/jetpack

Add "adapt_container_width" to facebook likebox widget

开放

#9,889 创建于 2018年7月10日

 (5 条评论) (0 个反应) (1 位负责人)PHP (877 个派生)user submission
EnhancementGood For CommunityHacktoberfest[Feature] Extra Sidebar Widgets[Pri] Low

仓库指标

星标
 (1,808 个星标)
PR 合并指标
 (平均合并 4天 5小时) (30 天内合并 645 个 PR)

描述

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>

贡献者指南