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: Fix truncation of a long page name in the top bar button (#2917)

Oleg Isonenf9349c6ac3cb
diff --git a/apps/builder/app/builder/features/topbar/topbar.tsx b/apps/builder/app/builder/features/topbar/topbar.tsx
index defcf9b5c1..dfa7d67f79 100644
--- a/apps/builder/app/builder/features/topbar/topbar.tsx
+++ b/apps/builder/app/builder/features/topbar/topbar.tsx
@@ -6,6 +6,7 @@ import {
Toolbar,
ToolbarToggleGroup,
ToolbarButton,
+ Text,
} from "@webstudio-is/design-system";
import type { Project } from "@webstudio-is/project";
import { $selectedPage } from "~/shared/nano-states";
@@ -41,7 +42,7 @@ const PagesButton = () => {
}}
tabIndex={0}
>
- {page.name}
+ <Text truncate>{page.name}</Text>
</ToolbarButton>
);
};