Skip to content

Commit f5bb20a

Browse files
committed
Slicer - Set additional bottom padding in minimap mode
1 parent 07ed4f9 commit f5bb20a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/atoms/Slicer.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ onMounted(() => {
165165
chart: minimapWrapper.value,
166166
})
167167
svgMinimap.value.width = width;
168-
svgMinimap.value.height = height - 47;
168+
svgMinimap.value.height = height - 59;
169169
});
170170
171171
resizeObserver.value = new ResizeObserver(handleResize);
@@ -258,7 +258,10 @@ const rightLabelPosition = computed(() => {
258258
<slot v-else name="reset-action" :reset="reset" />
259259
</div>
260260
</div>
261-
<div class="double-range-slider" ref="minimapWrapper" style="z-index: 0">
261+
<div class="double-range-slider" ref="minimapWrapper" :style="{
262+
zIndex: 0,
263+
paddingBottom: hasMinimap ? '24px' : '12px'
264+
}">
262265
<template v-if="hasMinimap">
263266
<div class="minimap" style="width: 100%">
264267
<svg :xmlns="XMLNS" :viewBox="`0 0 ${svgMinimap.width < 0 ? 0 : svgMinimap.width} ${svgMinimap.height < 0 ? 0 : svgMinimap.height}`">
@@ -342,7 +345,6 @@ const rightLabelPosition = computed(() => {
342345
width: calc(100%);
343346
height: 40px;
344347
margin: 0 auto;
345-
padding-bottom: 12px;
346348
}
347349
348350
.minimap {

0 commit comments

Comments
 (0)