diff --git a/webapp/app.ironcalc.com/frontend/src/App.tsx b/webapp/app.ironcalc.com/frontend/src/App.tsx index 2c6c000..2e5bae6 100644 --- a/webapp/app.ironcalc.com/frontend/src/App.tsx +++ b/webapp/app.ironcalc.com/frontend/src/App.tsx @@ -227,7 +227,7 @@ const Wrapper = styled("div")` `; const DRAWER_WIDTH = 264; -const MIN_MAIN_CONTENT_WIDTH_FOR_MOBILE = 768; +export const MIN_MAIN_CONTENT_WIDTH_FOR_MOBILE = 768; const MainContent = styled("div")<{ isDrawerOpen: boolean }>` margin-left: ${({ isDrawerOpen }) => diff --git a/webapp/app.ironcalc.com/frontend/src/components/FileBar.tsx b/webapp/app.ironcalc.com/frontend/src/components/FileBar.tsx index 7ce46b3..5b67142 100644 --- a/webapp/app.ironcalc.com/frontend/src/components/FileBar.tsx +++ b/webapp/app.ironcalc.com/frontend/src/components/FileBar.tsx @@ -3,6 +3,7 @@ import type { Model } from "@ironcalc/workbook"; import { IconButton, Tooltip } from "@mui/material"; import { CloudOff, PanelLeftClose, PanelLeftOpen } from "lucide-react"; import { useLayoutEffect, useRef, useState } from "react"; +import { MIN_MAIN_CONTENT_WIDTH_FOR_MOBILE } from "../App"; import { FileMenu } from "./FileMenu"; import { HelpMenu } from "./HelpMenu"; import { downloadModel } from "./rpc"; @@ -77,7 +78,7 @@ export function FileBar(properties: { {properties.isDrawerOpen ? : } - {width > 768 && ( + {width > MIN_MAIN_CONTENT_WIDTH_FOR_MOBILE && ( )} - {width > 768 && } + {width > MIN_MAIN_CONTENT_WIDTH_FOR_MOBILE && }