Skip to content

Commit 967fe47

Browse files
committed
set max width on the text
1 parent 1bf36e0 commit 967fe47

File tree

1 file changed

+4
-5
lines changed
  • apps/builder/app/builder/features/topbar

1 file changed

+4
-5
lines changed

apps/builder/app/builder/features/topbar/topbar.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,17 @@ const PagesButton = () => {
4646
}
4747
>
4848
<ToolbarButton
49-
css={{
50-
paddingInline: theme.panel.paddingInline,
51-
maxWidth: theme.spacing[24],
52-
}}
49+
css={{ paddingInline: theme.panel.paddingInline }}
5350
aria-label="Toggle Pages"
5451
onClick={(event) => {
5552
$editingPageId.set(event.altKey ? page.id : undefined);
5653
toggleActiveSidebarPanel("pages");
5754
}}
5855
tabIndex={0}
5956
>
60-
<Text truncate>{page.name}</Text>
57+
<Text truncate css={{ maxWidth: theme.spacing[24] }}>
58+
{page.name}
59+
</Text>
6160
</ToolbarButton>
6261
</Tooltip>
6362
);

0 commit comments

Comments
 (0)