GitbookIO / GitbookIO/gitbook

'Default Width' not carried over for line of multiple images

Open
#2,612 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
29k
Forks
4k
Avg merge
1d 2h
Merged PRs (30d)
71

Description

Bug description

While you have the option to set a line with multiple images to full width and default width in the gitbook app this setting is not carried over to the published site and just the 'full width' setting is used. This then causes the issue, that in every instance where you use it the images do not align with headers and paragraphs. Would be great if that could be carried over :)

How to reproduce

  1. /Insert images
  2. Select the options to the left of the image and use "Add images..." to add a second image to the line

Additional context

Images in gitbook (upper row 'default width', lower row 'full width')
image

Images on the published site. You can see the 'Volcano' header indicating the right location.
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the multiple-image case in the GitBook app, comparing a line set to default width with one set to full width, then inspect how the published site renders that line. Done means the default-width choice is preserved on the published site and images align with surrounding headers and paragraphs.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.