aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/css
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-09-15 00:16:02 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-09-15 11:02:28 +0800
commite25db413c595623b18315bd716ba7171f32ccc51 (patch)
tree867066377fc73dd802eb3f2bff78d5bc86d4f431 /src/css
parent8aadc8fd3b69fbd8a030e88426816c38ca32f4af (diff)
feat: Improve draggable behavior in overlay layout
* Set position=absolute on each block, so they won't affect each others' y value when display=none (about Block Formatting Context) * Add title tooltip for removing block * Simple logic to set initial position of block by their width
Diffstat (limited to 'src/css')
-rw-r--r--src/css/dumbymap.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css
index 1dc7a09..8e28af5 100644
--- a/src/css/dumbymap.css
+++ b/src/css/dumbymap.css
@@ -142,6 +142,7 @@
142 142
143 > .draggable-block { 143 > .draggable-block {
144 box-sizing: content-box; 144 box-sizing: content-box;
145 position: absolute;
145 width: fit-content; 146 width: fit-content;
146 max-height: 50vh; 147 max-height: 50vh;
147 overflow: scroll; 148 overflow: scroll;