web: data-driven switcher & save mode switcher

also:
- disabled ssr to enable localstorage
- removed the workaround for hover, as it looks bad
This commit is contained in:
wukko
2024-06-19 23:04:09 +06:00
parent e74aea076a
commit 4625939a87
7 changed files with 52 additions and 24 deletions

View File

@@ -1,8 +1,4 @@
<script lang="ts">
export let settingId: string;
</script>
<div id="switcher-{settingId}" class="switcher">
<div id="switcher-container" class="switcher">
<slot></slot>
</div>
@@ -31,7 +27,8 @@
border-radius: 0;
}
/* clumsy hack to get rid of double border in a list of switches */
.switcher > :global(:not(.button:first-child)) {
margin-left: -1.5px; /* hack to get rid of double border in a list of switches */
margin-left: -1.5px;
}
</style>