You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e47a798
Browse filesBrowse the repository at this point in the historyBrowse files
fix(app-shell): the chart view's view bar starts its icon on the list page's 16px edge
The chart view's own copy of the view bar kept sm:px-4 after the list
view's bar moved to sm:pl-2.5 sm:pr-2, so at sm and up its view icon sat
at 22 while the list's sat at 16. It now carries the list bar's padding.
Below sm both keep px-2.
The list renderer's inSetup input, read only in a memo dependency list
since the Setup row-number line went, is removed end to end.
The list left-edge geometry spec gains a chart view bar, read from the
renderer's source, pinned to the list's view icon at 1280 and 375.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6Cb8qTxAVaE2QKwquQU
fix: a chart view's view bar starts its view icon on the list page's 16px left edge, as the list view's bar does
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
A chart view draws its own copy of the view bar, and that copy kept `sm:px-4` after the list view's bar moved to `sm:pl-2.5 sm:pr-2` in #35663. From `sm` up the chart's view icon sat 22px from the main area's left edge while the list's sat at 16, so switching between a list view and a chart view moved the switcher. The chart bar now carries the list bar's padding: at 1280 its icon starts at 16 and its right padding is the list bar's 8. Below `sm` both bars keep `px-2`, so a phone is unchanged.
11
+
12
+
The list renderer's `inSetup` input is gone. Since #35663 removed the Setup app's row-number line it was read only in a memo's dependency list, so `ObjectView` no longer derives it from the route.
// The chart view's view bar is the list's (objectstack#35729): its icon
493
+
// is on the list's view icon (also in `expectOnEdge`), its right end the list bar's.
494
+
expect(Math.abs(r.left.chartViewIcon-r.left.viewIcon),`chart view icon ${r.left.chartViewIcon} vs list view icon ${r.left.viewIcon}`).toBeLessThanOrEqual(1);
495
+
expect(r.barPaddingRight.chart,'the chart view bar ends where the list view bar does').toBe(r.barPaddingRight.list);
465
496
});
466
497
}
467
498
@@ -494,13 +525,16 @@ test.describe('the list page draws one left edge (objectstack#35663)', () => {
0 commit comments