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: Improve topbar layout and responsiveness (#5613)

Oleg Isonenc60f8d7edacf
diff --git a/apps/builder/app/builder/features/breakpoints/breakpoints-container.tsx b/apps/builder/app/builder/features/breakpoints/breakpoints-container.tsx
index 08674d56d8..384b197860 100644
--- a/apps/builder/app/builder/features/breakpoints/breakpoints-container.tsx
+++ b/apps/builder/app/builder/features/breakpoints/breakpoints-container.tsx
@@ -17,7 +17,7 @@ import { serverSyncStore } from "~/shared/sync/sync-stores";
import type { Breakpoint } from "@webstudio-is/sdk";
const hideOnMobile = {
- "@media (max-width: 640px)": {
+ "@media (max-width: 800px)": {
display: "none",
},
} as const;
diff --git a/apps/builder/app/builder/features/topbar/sync-status.tsx b/apps/builder/app/builder/features/topbar/sync-status.tsx
index db5d525cd9..83295768ba 100644
--- a/apps/builder/app/builder/features/topbar/sync-status.tsx
+++ b/apps/builder/app/builder/features/topbar/sync-status.tsx
@@ -40,6 +40,7 @@ export const SyncStatus = () => {
align: "center" as const,
justify: "center" as const,
css: { height: theme.spacing["15"] },
+ shrink: false,
};
if (statusObject.status === "failed") {
diff --git a/apps/builder/app/builder/features/topbar/topbar.tsx b/apps/builder/app/builder/features/topbar/topbar.tsx
index 859842e555..bd1013f555 100644
--- a/apps/builder/app/builder/features/topbar/topbar.tsx
+++ b/apps/builder/app/builder/features/topbar/topbar.tsx
@@ -94,7 +94,7 @@ export const Topbar = ({ project, css, loading }: TopbarProps) => {
</Flex>
)}
</Flex>
- <Flex css={{ flexBasis: "60%" }} justify="center">
+ <Flex justify="center">
<BreakpointsContainer />
</Flex>
<Toolbar>
@@ -104,7 +104,7 @@ export const Topbar = ({ project, css, loading }: TopbarProps) => {
isolation: "isolate",
justifyContent: "flex-end",
gap: theme.spacing[5],
- width: theme.spacing[30],
+ flexShrink: 0,
}}
>
<SafeModeButton />
diff --git a/apps/builder/app/builder/features/topbar/view-mode.tsx b/apps/builder/app/builder/features/topbar/view-mode.tsx
index fef5e4b707..f825ad6a82 100644
--- a/apps/builder/app/builder/features/topbar/view-mode.tsx
+++ b/apps/builder/app/builder/features/topbar/view-mode.tsx
@@ -16,6 +16,7 @@ export const ViewMode = () => {
align="center"
justify="center"
css={{ height: theme.spacing["15"] }}
+ shrink={false}
>
<CloudIcon
color={rawTheme.colors.backgroundAlertMain}