Add a density preference to the agentic UI#3821
Open
youknowriad wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Collaborator
📊 Performance Test ResultsComparing 8490969 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
How AI was used in this PR
Built with Claude Code in an interactive session: the feature shape, density semantics, and each visual adjustment were human-directed, with the implementation, cascade/specificity analysis, and verification done by the agent. All code was reviewed iteratively during the session.
Proposed Changes
#3646 increased the base UI font size (13px → 14px) as part of the agentic UI redesign, but that sizing suited some users and not others. This PR turns it into a choice: a Density picker (Compact / Comfortable) in Settings → Preferences, persisted like the other preferences.
size="small"buttons from 24px to 28px, and steps icons up from 16px to 18px — so the UI reads larger without changing layout.Notably, the preference deliberately does not change the
ThemeProvider'sdensityprop: the design system's density only swaps padding/gap tokens (it never scales type), and the classic UI's global icon sizing is keyed to compact density — switching it would re-inflate every icon to 24px and shift all spacing far beyond the intended effect.Independent of the preference, two small preview-header improvements apply in both densities: roomier header padding, the refresh icon redrawn ~10% smaller to sit proportionally with its neighbors, and a small gap separating refresh from the back/forward cluster.
Testing Instructions
~/.studio/app.json).Pre-merge Checklist
🤖 Generated with Claude Code