From 9069ae0af9e83808ba5071b717f7775be4154f2a Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Tue, 13 Oct 2020 13:43:35 -0700 Subject: [PATCH] Make board and table scroll using flexbox --- src/static/main.css | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/src/static/main.css b/src/static/main.css index 7355bf746..582046edd 100644 --- a/src/static/main.css +++ b/src/static/main.css @@ -5,6 +5,8 @@ } html, body { + display: flex; + width: 100%; height: 100%; color: rgb(55, 53, 47); } @@ -63,21 +65,26 @@ hr { /* App frame */ #octo-tasks-app { - height: 100%; - overflow: hidden; + flex: 1 1 auto; + display: flex; + flex-direction: column; + overflow: auto; } #octo-tasks-app > #main { - height: 100%; + flex: 1 1 auto; + display: flex; + flex-direction: column; + overflow: auto; } /* Sidebar */ .octo-workspace { + flex: 1 1 auto; display: flex; flex-direction: row; - - height: 100%; + overflow: auto; } .octo-sidebar { @@ -110,21 +117,24 @@ hr { /* Main app */ .octo-app { + flex: 1 1 auto; display: flex; flex-direction: column; - - min-width: 1000px; overflow: auto; } .octo-frame { + flex: 1 1 auto; display: flex; flex-direction: column; + overflow: scroll; padding: 10px 95px 50px 95px; } .octo-board { + flex: 0 1 auto; + display: flex; flex-direction: column; } @@ -172,12 +182,14 @@ hr { display: flex; flex-direction: row; padding: 0 10px; + flex: 0 1 auto; } .octo-board-column { + flex: 0 0 auto; + display: flex; flex-direction: column; - flex-shrink: 0; width: 260px; margin-right: 15px;