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.

experimental: Set the menu items height along with the content mode shortcut and name (#4494)

Oleg Isonen69fd8558a13b
diff --git a/apps/builder/app/builder/features/topbar/builder-mode.tsx b/apps/builder/app/builder/features/topbar/builder-mode.tsx
index 4ee88bb254..65213d8b6b 100644
--- a/apps/builder/app/builder/features/topbar/builder-mode.tsx
+++ b/apps/builder/app/builder/features/topbar/builder-mode.tsx
@@ -55,8 +55,8 @@ export const BuilderModeDropDown = () => {
content: {
icon: <NotebookAndPenIcon />,
description: "Modify the page content",
- title: "Build",
- shortcut: ["cmd", "shift", "b"],
+ title: "Content",
+ shortcut: ["cmd", "shift", "c"],
enabled: isContentModeAllowed,
},
preview: {
@@ -115,10 +115,7 @@ export const BuilderModeDropDown = () => {
onFocus={handleFocus(mode as BuilderMode)}
onBlur={handleBlur}
>
- <Flex
- css={{ py: theme.spacing[4], px: theme.spacing[5] }}
- gap={2}
- >
+ <Flex css={{ px: theme.spacing[3] }} gap={2}>
{icon}
<Box>{title}</Box>
</Flex>
diff --git a/apps/builder/app/builder/features/workspace/canvas-tools/outline/block-instance-outline.tsx b/apps/builder/app/builder/features/workspace/canvas-tools/outline/block-instance-outline.tsx
index cc70718256..9c4eafb10c 100644
--- a/apps/builder/app/builder/features/workspace/canvas-tools/outline/block-instance-outline.tsx
+++ b/apps/builder/app/builder/features/workspace/canvas-tools/outline/block-instance-outline.tsx
@@ -284,11 +284,7 @@ const TemplatesMenu = ({
{...{ [skipInertHandlersAttribute]: true }}
data-yyy
>
- <Flex
- css={{ py: theme.spacing[4], px: theme.spacing[5] }}
- gap={2}
- data-xxx
- >
+ <Flex css={{ px: theme.spacing[3] }} gap={2} data-xxx>
{icon}
<Box>{title}</Box>
</Flex>
@@ -301,7 +297,7 @@ const TemplatesMenu = ({
<Grid css={{ width: theme.spacing[25] }}>
<Flex gap={1} css={{ display: hasChildren ? "none" : undefined }}>
<Kbd value={["click"]} />
- <Text>to add first</Text>
+ <Text>to add before</Text>
</Flex>
<Flex
diff --git a/apps/builder/app/builder/shared/commands.ts b/apps/builder/app/builder/shared/commands.ts
index 3b56b9424f..1c99aad819 100644
--- a/apps/builder/app/builder/shared/commands.ts
+++ b/apps/builder/app/builder/shared/commands.ts
@@ -178,8 +178,8 @@ export const { emitCommand, subscribeCommands } = createCommandsEmitter({
},
},
{
- name: "toggleBuildMode",
- defaultHotkeys: ["meta+shift+b", "ctrl+shift+b"],
+ name: "toggleContentMode",
+ defaultHotkeys: ["meta+shift+c", "ctrl+shift+c"],
handler: () => {
setActiveSidebarPanel("auto");
toggleBuilderMode("content");