Fix some bugs with rail variant and fix offset

when side nav was not present.
This commit is contained in:
jqlio18 2022-12-18 12:28:19 -05:00
commit d5251ff47c
2 changed files with 6 additions and 3 deletions

View file

@ -3,6 +3,7 @@
export let id = "main-content";
import { Grid, Row, Column } from "../Grid";
import { shouldRenderHamburgerMenu } from "./navStore";
</script>
<div
@ -17,7 +18,9 @@
>
<Grid narrow noGutter>
<Row>
<Column lg="{{ span: 13, offset: 3 }}">
<Column
lg="{$shouldRenderHamburgerMenu ? { span: 13, offset: 3 } : {}}"
>
<slot />
</Column>
</Row>