Skip to content

Commit

Permalink
refactor(website): Fix height issues with empty pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayfri committed Apr 8, 2024
1 parent adecee6 commit 6a346fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ object DocTreeStyle : StyleSheet() {
padding(0.8.cssRem)
marginRight(1.cssRem)

height(100.vh)
height(100.percent)
position(Position.Sticky)
top(0.px)
left(0.px)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ object MarkdownLayoutStyle : StyleSheet() {
id("root") style {
display(DisplayStyle.Flex)
flexDirection(FlexDirection.Column)
minHeight(100.vh)
}

"main" style {
display(DisplayStyle.Flex)
flexDirection(FlexDirection.Row)
flexGrow(1.0)
}

"h1" style {
Expand Down Expand Up @@ -83,6 +85,7 @@ object MarkdownLayoutStyle : StyleSheet() {
flexDirection(FlexDirection.Column)
marginX(3.vw)
marginBottom(2.cssRem)
minHeight(100.percent)
width(100.percent)
overflowX(Overflow.Auto)
}
Expand Down

0 comments on commit 6a346fc

Please sign in to comment.