From dfc9ccff45df96d0ffbfef71bbec0a7233b8f391 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 15 Sep 2024 00:25:25 +0800 Subject: chore(CSS): Improve layout of DumbyMap --- src/css/dumbymap.css | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/css/dumbymap.css') diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css index a41cd57..e9d9dba 100644 --- a/src/css/dumbymap.css +++ b/src/css/dumbymap.css @@ -39,23 +39,21 @@ /* height: 100vh; */ .Showcase { - flex: 0; + order: 2; #mapPlaceholder { display: none; } } .SemanticHtml { - flex: 1; + order: 1; padding: 0.5rem; overflow-y: scroll; > .draggable-block { width: 100%; - position: relative; pointer-events: auto; border-radius: 0.5rem; - padding: 0.5rem; background-color: white; margin-bottom: 3rem; @@ -145,14 +143,22 @@ box-sizing: content-box; position: absolute; width: fit-content; + height: fill-available; max-height: 50vh; overflow: scroll; border: solid gray; + padding: 0.3rem; + padding-top: 0.5rem; + padding-bottom: 0; * { max-width: calc(100vw/4); } + .map-container { + min-width: 200px; + } + .draggable { width: 100%; display: block; @@ -167,6 +173,7 @@ transition: all 0.3s ease-out; &:hover { background-color: lightgray; + padding-top: 1em; } } } -- cgit v1.2.3-70-g09d2