Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit b633381

Browse files
committed
use grid for main layout
1 parent e621c13 commit b633381

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/css/main.css

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -844,23 +844,21 @@ button.secondary:hover {
844844
/* -- Application ---------------------------------------------------------- */
845845

846846
#app {
847-
display: flex;
848-
flex-grow: 1;
849-
flex-direction: row;
847+
display: grid;
848+
grid-template-columns: var(--main-sidebar-width) 1fr;
850849
}
851850

852851
/* -- Main Sidebar --------------------------------------------------------- */
853852

854853
#main-sidebar {
855-
width: var(--main-sidebar-width);
856-
background: var(--color-sidebar-bg);
857-
color: var(--color-sidebar-fg);
858-
border-right: 1px solid var(--color-sidebar-border);
859854
display: flex;
860855
flex-direction: column;
861-
font-size: var(--font-size-medium);
862856
overflow: auto;
863857
height: 100vh;
858+
background: var(--color-sidebar-bg);
859+
color: var(--color-sidebar-fg);
860+
border-right: 1px solid var(--color-sidebar-border);
861+
font-size: var(--font-size-medium);
864862
padding: 1rem 1rem 1rem 1.5rem;
865863
scrollbar-width: thin;
866864
scrollbar-color: var(--color-sidebar-subtle-fg) var(--color-sidebar-bg);
@@ -1084,7 +1082,6 @@ button.secondary:hover {
10841082
#workspace {
10851083
background: var(--color-workspace-bg);
10861084
color: var(--color-workspace-fg);
1087-
flex-grow: 1;
10881085
}
10891086

10901087
#workspace-toolbar {

0 commit comments

Comments
 (0)