Skip to content

fix(web): keep the comment-settings save bar a compact centered pill - #667

Merged
Zach Dunn (zachdunn) merged 1 commit into
mainfrom
claude/settings-savebar-width
Aug 14, 2026
Merged

fix(web): keep the comment-settings save bar a compact centered pill#667
Zach Dunn (zachdunn) merged 1 commit into
mainfrom
claude/settings-savebar-width

Conversation

@zachdunn

@zachdunn Zach Dunn (zachdunn) commented Aug 14, 2026

Copy link
Copy Markdown
Member

Follow-up to #666. Two things: a width fix on the floating save bar, and the result of auditing whether that bar belongs on the other settings-style pages.

Save-bar width

The floating save bar was sized by shrink-to-fit plus white-space: nowrap. That reads as a compact pill on desktop, but on a narrow viewport the nowrap content overflowed the max-width: calc(100vw - 32px) cap. This sizes it explicitly to its content (width: max-content) and drops the nowrap, so it stays a compact centered pill on desktop and wraps within the cap on mobile instead of overflowing. Width only — no behaviour change.

Measured in the real signed-in shell:

Viewport Save-bar width Result
1200px 382px, centered (409px gutters each side) compact pill, not full-width
375px 343px (= viewport − 32), 16px gutters wraps cleanly, no overflow

Audit: does the floating bar belong on other settings pages?

Checked every settings-style / save-button surface. It only fits the GitHub comment page, and I did not migrate the others — on inspection they're a different interaction model, where a "you have unsaved changes → Save / Reset" bar would be worse, not more consistent:

  • Storage tab (settings/storage.astro) — a connect → verify → save wizard plus contextual action buttons (Re-run verification, Rotate credentials, Disconnect). "Save" is step 3 of the wizard, gated on a verification checklist. There's no persistent editable-settings state to be "unsaved".
  • Admin OAuth editor (admin/oauth/[clientId].astro) — a read-only detail view with an Edit toggle that opens a modal-style form (Save changes / Cancel), on the AdminLayout shell.

The GitHub comment page is the one surface that's a flat list of persistent settings edited in place, which is exactly what the floating bar is for. Leaving Storage/OAuth on their inline controls is the right call; happy to revisit if you'd rather force uniformity.

Screenshots

Desktop (1200px) Mobile (390px)
Save bar as a compact centered pill on desktop Save bar wrapping within the viewport on mobile

Local dev server with the admin-gated section force-revealed and the bar pinned dirty; the auth banner up top is just the unauthenticated dev shell.

The floating save bar relied on shrink-to-fit plus `white-space: nowrap`,
which overflowed its viewport-width cap on narrow screens. Size it
explicitly to its content (`width: max-content`) and drop the nowrap so it
stays a compact centered pill on desktop and wraps within the cap on mobile
instead of overflowing. Width only, no behaviour change.
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (2)
  • coderabbit:review
  • review
🚫 Excluded labels (none allowed) (1)
  • wip

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 66192d1b-6295-46ad-835c-1637fabdfdfd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@changeset-bot

changeset-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6a3ec7f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
uploads-web 6a3ec7f Commit Preview URL

Branch Preview URL
Aug 14 2026, 03:18 PM

@uploads-sh

uploads-sh Bot commented Aug 14, 2026

Copy link
Copy Markdown

savebar-desktop.webp
/account/workspaces/settings/github

savebar-mobile.webp
/account/workspaces/settings/github

Maintained by uploads.sh — re-uploading a file with the same name updates it everywhere it is embedded.
Add media: uploads put <file> --pr <N> --comment (or --issue <N>) · docs

@zachdunn
Zach Dunn (zachdunn) merged commit d085d4d into main Aug 14, 2026
4 checks passed
@zachdunn
Zach Dunn (zachdunn) deleted the claude/settings-savebar-width branch August 14, 2026 15:21
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.

1 participant