Skip to content

Commit dbc0238

Browse files
refactor(web): show more / show less are ordinary sidebar sub-rows
The two list-expander rows in the thread list restyled SidebarMenuSubButton into a taller, dimmer row. They are rows in the list and now look like the rows around them. Visible effect: the show more / show less rows in the legacy sidebar go from 32px at 75% muted text to the standard 28px sub-row. Lowers the no-restyle ceiling from 643 to 633. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent bed4b2a commit dbc0238

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎apps/web/src/components/LegacySidebar.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,6 @@ const SidebarProjectThreadList = memo(function SidebarProjectThreadList(
10911091
render={showMoreButtonRender}
10921092
data-thread-selection-safe
10931093
size="sm"
1094-
className="h-8 w-full translate-x-0 justify-start px-2 text-left text-xs text-sidebar-muted-foreground/75 hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
10951094
onClick={() => {
10961095
expandThreadListForProject(projectKey);
10971096
}}
@@ -1109,7 +1108,6 @@ const SidebarProjectThreadList = memo(function SidebarProjectThreadList(
11091108
render={showLessButtonRender}
11101109
data-thread-selection-safe
11111110
size="sm"
1112-
className="h-8 w-full translate-x-0 justify-start px-2 text-left text-xs text-sidebar-muted-foreground/75 hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
11131111
onClick={() => {
11141112
collapseThreadListForProject(projectKey);
11151113
}}

‎scripts/lint-restyle-ceiling.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as NodeURL from "node:url";
88
// components/ui exports are migrated to variants (see vite.config.ts). This gate keeps the
99
// count from growing: CI fails when findings exceed the ceiling. Lower the ceiling when you
1010
// migrate a file, and delete this script when the rule becomes an error.
11-
export const RESTYLE_CEILING = 776;
11+
export const RESTYLE_CEILING = 766;
1212

1313
const RULE = "shadcn(no-restyle)";
1414

0 commit comments

Comments
 (0)