Automattic / Automattic/jetpack

Gif Block: Ability to set a size

Open
#15,889 2 comments 0 reactions 0 assignees View on GitHub
[Block] GIF Customer Report [LEGACY] Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Is your feature request related to a problem? Please describe.
Right now when you use the Gif Block, it inserts a gif that's as wide as your post/page's content area, and you don't have an option to scale it down.

#### Describe the solution you'd like
Add a control to set an image size, similar to the Image block, so the gifs can be scaled down.

#### Describe alternatives you've considered
Either adding a max-width on the theme level -- which may not always be how you want gifs to be sized -- or adding classes to the Additional CSS field and including custom styles.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Gif Block and Image block entry points and comparing how the Image block exposes size controls. Done means the Gif Block offers a comparable control and allows inserted GIFs to be scaled below the post or page content width.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, react
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.