Browse: no vertical scrollbar on the root shelves
The three shelf rows fit the screen, and each scrolls sideways on its own, so the page around them no longer scrolls vertically. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -192,10 +192,12 @@ function BrowseViewImpl({
|
|||||||
ref={scroller}
|
ref={scroller}
|
||||||
className={ANIMATE_VIEW_TRANSITIONS ? "view-enter" : undefined}
|
className={ANIMATE_VIEW_TRANSITIONS ? "view-enter" : undefined}
|
||||||
// Right padding reserves room for the tab rail's own glass bar (see
|
// Right padding reserves room for the tab rail's own glass bar (see
|
||||||
// TAB_RAIL_CLEARANCE) so a full-width shelf row never renders under it.
|
// TAB_RAIL_CLEARANCE) so a full-width shelf row never renders under it. The
|
||||||
|
// three rows fit the screen, so no vertical scrollbar: each row scrolls
|
||||||
|
// sideways on its own.
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
overflow: "auto",
|
overflow: "hidden",
|
||||||
minHeight: 0,
|
minHeight: 0,
|
||||||
padding: `14px ${TAB_RAIL_CLEARANCE}px 250px 32px`,
|
padding: `14px ${TAB_RAIL_CLEARANCE}px 250px 32px`,
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user