Skip to content

Commit 5a2c5e9

Browse files
committed
Responsive margins for header and minimap
1 parent b938eb6 commit 5a2c5e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/Header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<SharePanel bind:visible={sharePanelVisible}></SharePanel>
1616

1717
<div
18-
class="absolute top-5 left-5 z-999 rounded-[8px] bg-white px-3 py-3 text-[#336] shadow-lg"
18+
class="absolute top-5 left-2 sm:left-5 z-999 rounded-[8px] bg-white px-3 py-3 text-[#336] shadow-lg"
1919
onmouseenter={() => (buttonCollapse = false)}
2020
onmouseleave={() => (buttonCollapse = true)}
2121
role="button"

src/lib/Minimap.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
</script>
9393

9494
{#if visibleHistoricMaps.size}
95-
<svg {width} {height} viewBox={viewBox.join(' ')} class="absolute top-2 right-8 z-998" style="filter: drop-shadow( 0px 0px 4px rgba(51, 51, 102, .5));">
95+
<svg {width} {height} viewBox={viewBox.join(' ')} class="absolute top-2 z-998 right-2 sm:right-8" style="filter: drop-shadow( 0px 0px 4px rgba(51, 51, 102, .5));">
9696
<!-- ARROW POINTING FROM SELECTED MAP TO MAP-PREVIEW-BOX -->
9797
<g transform="scale(1, -1) translate(0, -{viewBox[1] * 2 + viewBox[3]})">
9898
{#if clickedHistoricMap}

0 commit comments

Comments
 (0)