From 539e083256f62f166ad72cf81091bbac80b62ec9 Mon Sep 17 00:00:00 2001 From: Ivan Starkov Date: Mon, 2 Dec 2024 21:36:16 +0700 Subject: [PATCH] fix: Show extended panels (#4493) ## Description 1. What is this PR about (link the issue and add a short description) ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file --- apps/builder/app/builder/builder.tsx | 45 ++++++++++--------- .../features/marketplace/marketplace.tsx | 18 ++++---- .../app/builder/features/pages/pages.tsx | 9 ++-- .../workspace/canvas-tools/canvas-tools.tsx | 8 +++- .../builder/features/workspace/workspace.tsx | 26 +++++++---- .../builder/shared/extended-sidebar-panel.tsx | 23 ++++++---- apps/builder/app/shared/nano-states/misc.ts | 2 + .../design-system/src/components/toast.tsx | 1 + 8 files changed, 80 insertions(+), 52 deletions(-) diff --git a/apps/builder/app/builder/builder.tsx b/apps/builder/app/builder/builder.tsx index dd28d6a8a63a..a446ae002902 100644 --- a/apps/builder/app/builder/builder.tsx +++ b/apps/builder/app/builder/builder.tsx @@ -19,6 +19,7 @@ import { Topbar } from "./features/topbar"; import { Footer } from "./features/footer"; import { CanvasIframe, + CanvasToolsContainer, useReadCanvasRect, Workspace, } from "./features/workspace"; @@ -93,7 +94,6 @@ const SidePanel = ({ }: SidePanelProps) => { return ( ( +const Main = ({ children, css }: { children: ReactNode; css?: CSS }) => ( {children} @@ -361,24 +362,6 @@ export const Builder = ({ navigatorLayout={navigatorLayout} > - - } - /> - - -
{dataLoadingState === "loaded" && ( @@ -392,6 +375,10 @@ export const Builder = ({ {isDesignMode && }
+ + + + +
+ +
+ + } + /> {isPreviewMode === false &&