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.

ds adoption

Oleg Isonenc7f5427dfb4c
diff --git a/apps/designer/app/designer/designer.tsx b/apps/designer/app/designer/designer.tsx
index 9f74bf6827..0b210fd487 100644
--- a/apps/designer/app/designer/designer.tsx
+++ b/apps/designer/app/designer/designer.tsx
@@ -219,7 +219,9 @@ export const Designer = ({ config, project, assets }: DesignerProps) => {
<SidebarLeft assets={assets} publish={publish} />
</SidePanel>
<SidePanel gridArea="navigator" isPreviewMode={isPreviewMode}>
- <Navigator publish={publish} />
+ <Box css={{ borderRight: "1px solid $slate7", width: 240 }}>
+ <Navigator publish={publish} />
+ </Box>
</SidePanel>
<SidePanel
gridArea="inspector"
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx b/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx
index 64455e5ab3..89b23d305b 100644
--- a/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx
@@ -3,9 +3,9 @@ import { forwardRef, type ElementRef, type ComponentProps } from "react";
import { Flex, Text, styled } from "@webstudio-is/design-system";
const Thumb = styled(Flex, {
- px: 5,
- width: 75,
- height: 75,
+ px: "$1",
+ width: 72,
+ height: 72,
border: "1px solid $slate6",
userSelect: "none",
color: "$hiContrast",
diff --git a/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx b/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
index e9c7e2c5f7..073a481ff1 100644
--- a/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/sidebar-left.tsx
@@ -13,16 +13,6 @@ import { panels } from "./panels";
import type { TabName } from "./types";
import { isFeatureEnabled } from "~/shared/feature-flags";
-const sidebarTabsContentStyle = {
- position: "absolute",
- left: "100%",
- width: 250,
- height: "100%",
- bc: "$loContrast",
- // @todo: focus state should be same as hover/active state: hover and focus yes, probably same, active? not so sure.
- outline: "none",
-};
-
const none = { TabContent: () => null };
type SidebarLeftProps = {
@@ -68,7 +58,6 @@ export const SidebarLeft = ({ publish, assets }: SidebarLeftProps) => {
<SidebarTabsContent
value={activeTab === "none" ? "" : activeTab}
css={{
- ...sidebarTabsContentStyle,
// We need the node to be rendered but hidden
// to keep receiving the drag events.
visibility:
diff --git a/packages/design-system/src/components/sidebar-tabs.tsx b/packages/design-system/src/components/sidebar-tabs.tsx
index 20a1d34c78..84a1357df3 100644
--- a/packages/design-system/src/components/sidebar-tabs.tsx
+++ b/packages/design-system/src/components/sidebar-tabs.tsx
@@ -42,12 +42,9 @@ const StyledTabsList = styled(TabsPrimitive.List, {
display: "flex",
flexDirection: "column",
alignItems: "center",
- "&:focus": {
- outline: "none",
- boxShadow: "inset 0 0 0 1px $slate8, 0 0 0 1px $slate8",
- },
- '&[data-orientation="vertical"]': {
- boxShadow: "inset -1px 0 0 $slate6",
+ outline: "none",
+ '&[data-state="active"]': {
+ borderRight: "1px solid $slate7",
},
});
@@ -70,12 +67,11 @@ export const SidebarTabsContent = styled(TabsPrimitive.Content, {
position: "absolute",
top: 0,
left: "100%",
- width: 400,
+ width: 240,
height: "100%",
bc: "$loContrast",
- outline: "1px solid $slate6",
- "&:focus": {
- outline: "none",
- boxShadow: "inset 0 0 0 1px $slate8, 0 0 0 1px $slate8",
+ outline: "none",
+ '&[data-state="active"]': {
+ borderRight: "1px solid $slate7",
},
});