From 7a3cbaf8bb8fdbae487f96a81b881d42f732f6b5 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 15 Sep 2024 11:51:30 +0800 Subject: feat(CSS): Make draggable blocks resizable --- src/css/dumbymap.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/css') diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css index 2da2376..876d980 100644 --- a/src/css/dumbymap.css +++ b/src/css/dumbymap.css @@ -145,14 +145,18 @@ position: absolute; width: fit-content; max-height: 50vh; + max-width: 25vw; overflow: scroll; border: solid gray; padding: 0.3rem; padding-top: 0.5rem; padding-bottom: 0; + resize: both; - * { - max-width: calc(100vw/4); + &[style*="height"], + &[style*="width"] { + max-height: unset; + max-width: unset; } .map-container { -- cgit v1.2.3-70-g09d2