Skip to content

Commit

Permalink
themebuilder: fix builder layout with app on the side
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Aug 8, 2023
1 parent c8a7793 commit 4b74cba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 6 additions & 3 deletions apps/theme-builder/src/components/theme-builder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,17 @@ export default function ThemeBuilder() {
return loading ? null : (
<Flex
sx={{
width: 300,
width: 260,
flexShrink: 0,
bg: "background",
display: "flex",
overflow: "hidden",
flexDirection: "column",
overflowY: "scroll",
padding: "10px 0px",
rowGap: "10px"
pt: 2,
rowGap: 2,
borderLeft: "1px solid var(--border)",
zIndex: 999
}}
>
<Flex
Expand Down
3 changes: 2 additions & 1 deletion apps/theme-builder/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ async function renderApp() {
sx={{
display: "flex",
"#app": { flex: 1, height: "unset" },
height: path === "default" ? "100%" : "unset"
"& > :first-child": { flex: 1 },
height: "100%"
}}
>
<Component route={props?.route || "login:email"} />
Expand Down
5 changes: 1 addition & 4 deletions apps/web/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ async function renderApp() {
const { default: Component } = await component();
logger.measure("app render");
render(
<BaseThemeProvider
addGlobalStyles
sx={{ height: path === "default" ? "100%" : "unset" }}
>
<BaseThemeProvider addGlobalStyles sx={{ height: "100%" }}>
<Component route={props?.route || "login:email"} />
</BaseThemeProvider>,
document.getElementById("root"),
Expand Down

0 comments on commit 4b74cba

Please sign in to comment.