Skip to content

fix(app): line up settings with home and keep home steady at medium widths - #65998

Merged
arvsrn merged 2 commits into
devfrom
home-settings-align
Nov 24, 2026
Merged

arvsrn merged 2 commits into
devfrom
home-settings-align

Conversation

@arvsrn

@arvsrn arvsrn commented Nov 24, 2026

Copy link
Copy Markdown
Member

Summary

Settings and Home now share one layout, so switching between them no longer moves the sidebar or content sideways. Home also stops jumping at its medium breakpoint.

 Settings (panel ≥ 800px)
-  centred 1048px · sidebar 328px (items 240px) · content ≤ 720px
+  centred 1056px + 24px gutters · sidebar 256px (items 244px) · content 720px
 Home (≥ 1024px)
-  centred 1080px · projects column 280px
+  centred 1056px · projects column 256px
 Home (768–1023px)
-  projects list stacked above sessions · search bar 24px lower than at ≥ 1024px
+  project picker inside the search field · search bar at the same height as ≥ 1024px
  • Settings sidebar items match Home's rows: 6px corners, 8px icon gap, bg-layer-01 hover with darker text. Same for "Back to app".
  • Settings search icon moves 2px left to line up with the tab icons; its text doesn't move.
  • Picking or adding a project from the in-field picker clears the search, like the projects column does. Without this, the typed query stayed in the box while the list showed the project unfiltered. With the Consolidated experiment, search filters in place, so the query carries over.
  • Below 768px (phones) Home is unchanged.

Evidence

Measured in the story lab at 1440 / 1200 / 1050px (x, width):

Before After
Home project row / Settings tab 204, 268 / 220, 240 216, 244 / 216, 244
Home search field / Settings card 516, 720 / 528, 712 504, 720 / 504, 720

New e2e regressions, each failing with its fix reverted:

settings.spec.ts  "settings lines its sidebar and content up with Home's columns"
  before: tab width ≠ Home row width      after: pass
home.spec.ts      "picking a project from the picker in session search clears the search"
  before: Received "Finished", expected ""   after: pass

Ran home, settings, settings-search, shell-panel-spacing and mobile-session specs in built mode: 126 passed. The 9 failures all press Ctrl shortcuts, which fail on local macOS (Windows UA) and are untouched by this change. Checked by hand in the desktop app.

No feature flag: these are layout fixes. The in-field picker at 768–1023px is the one new behaviour.

Merge Danger

Door: two-way

CSS and one optional callback; reverting restores the old layout.

Blast Radius: layout

Settings and Home at desktop widths, and Home at 768–1023px. Settings shown beside an open side-tabs sidebar can still pick a different layout than Home, since Home follows the window width and Settings its own panel width.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks sound. I ran the app in Playwright on both the base and this branch. At 1440px, Settings' sidebar and content now line up with Home's projects column and search field. At 900px, Home moves the project picker into the search field and keeps the search bar at its ≥1024px height. Both new e2e tests fail on the base and pass here. The home, settings, settings-search and shell-panel-spacing specs all pass (127), and tsc -b is clean.

Public API is unchanged: these are app layout/CSS changes plus one internal optional onPick prop on HomeProjects.

No blocking concerns.

Before

After

Before

After

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The new commit only adds blank lines to the settings alignment test, so there is nothing new to verify. My earlier check still applies, and there are no new concerns. Public API is unchanged.

@arvsrn
arvsrn merged commit f824eb3 into dev Nov 24, 2026
10 checks passed
@arvsrn
arvsrn deleted the home-settings-align branch November 24, 2026 06:29
beyondChang pushed a commit to beyondChang/opencode that referenced this pull request Nov 24, 2026
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