Skip to content

fix(bundle): even out spacing around the settings separator - #1225

Merged
makhnatkin merged 3 commits into
mainfrom
fix/settings-preview-button-spacing
Sep 15, 2026
Merged

makhnatkin merged 3 commits into
mainfrom
fix/settings-preview-button-spacing

Conversation

@makhnatkin

@makhnatkin makhnatkin commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Fix settings separator spacing

  • Removed extra spacing around the preview button.
  • Hidden the separator when no settings are available.
  • Updated affected visual snapshots.
  • Stabilized the empty code block screenshot check.

The `margin: 0 2px` on the preview button is left over from the layout
that also had a mode button (#207); after the mode button was dropped
(#933) it only made the separator sit 6px from the preview button and
4px from the settings button.

The separator was also rendered on a truthy `settingsVisible`, so an
empty `settingsVisible={[]}` produced a divider with no settings button
next to it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sourcery-ai

sourcery-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The PR fixes settings-toolbar alignment by removing a leftover preview-button margin and prevents an orphaned divider by using the same visibility condition as the settings button. Toolbar screenshots will need regeneration; settings-panel snapshots are unaffected.

File-Level Changes

Change Details Files
Remove the obsolete preview-button margin so the toolbar divider has symmetric spacing.
  • Delete the 2px horizontal margin override from the preview button styles.
packages/editor/src/bundle/settings/index.scss
Align divider rendering with the condition that controls the settings button.
  • Render the separator using areSettingsVisible instead of the truthiness of settingsVisible.
packages/editor/src/bundle/settings/index.tsx

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@gravity-ui

gravity-ui Bot commented Sep 10, 2026

Copy link
Copy Markdown

Storybook Deployed

@gravity-ui

gravity-ui Bot commented Sep 10, 2026

Copy link
Copy Markdown

🎭 Playwright Report

@makhnatkin
makhnatkin marked this pull request as ready for review September 14, 2026 21:10
@makhnatkin
makhnatkin requested a review from d3m1d0v as a code owner September 14, 2026 21:10

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@makhnatkin makhnatkin changed the title fix(settings): even out spacing around the settings separator fix(bundle): even out spacing around the settings separator Sep 15, 2026
@makhnatkin
makhnatkin merged commit f5e5d80 into main Sep 15, 2026
8 of 9 checks passed
@makhnatkin
makhnatkin deleted the fix/settings-preview-button-spacing branch September 15, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants