Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: Shorten page name correctly in the top bar (#4921)

Oleg Isonen10b7f06601ca
diff --git a/apps/builder/app/builder/features/topbar/topbar.tsx b/apps/builder/app/builder/features/topbar/topbar.tsx
index b19fbaf033..6dd722d1a0 100644
--- a/apps/builder/app/builder/features/topbar/topbar.tsx
+++ b/apps/builder/app/builder/features/topbar/topbar.tsx
@@ -46,10 +46,7 @@ const PagesButton = () => {
}
>
<ToolbarButton
- css={{
- paddingInline: theme.panel.paddingInline,
- maxWidth: theme.spacing[24],
- }}
+ css={{ paddingInline: theme.panel.paddingInline }}
aria-label="Toggle Pages"
onClick={(event) => {
$editingPageId.set(event.altKey ? page.id : undefined);
@@ -57,7 +54,9 @@ const PagesButton = () => {
}}
tabIndex={0}
>
- <Text truncate>{page.name}</Text>
+ <Text truncate css={{ maxWidth: theme.spacing[24] }}>
+ {page.name}
+ </Text>
</ToolbarButton>
</Tooltip>
);