diff --git a/packages/web-console/src/components/TableSchemaDialog/dialog.tsx b/packages/web-console/src/components/TableSchemaDialog/dialog.tsx index beb62fa02..79bc35d8f 100644 --- a/packages/web-console/src/components/TableSchemaDialog/dialog.tsx +++ b/packages/web-console/src/components/TableSchemaDialog/dialog.tsx @@ -159,6 +159,7 @@ export const Dialog = ({ return ( diff --git a/packages/web-console/src/scenes/Editor/Menu/index.tsx b/packages/web-console/src/scenes/Editor/Menu/index.tsx index a84688f20..d6d39adb5 100644 --- a/packages/web-console/src/scenes/Editor/Menu/index.tsx +++ b/packages/web-console/src/scenes/Editor/Menu/index.tsx @@ -321,7 +321,12 @@ const Menu = () => { mode="side" title="QuestDB News" withCloseButton - onOpenChange={setNewsOpened} + onOpenChange={(newsOpened) => { + setNewsOpened(newsOpened) + dispatch( + actions.console.setActivePanel(newsOpened ? "news" : "console"), + ) + }} trigger={ ` flex: 1; + width: ${({ sideOpened }) => (sideOpened ? "calc(100% - 50rem)" : "100%")}; ` const Drawer = styled.div` @@ -73,9 +74,14 @@ const Layout = () => { return ( -
+