UX: add background to 'add new point'-button if disabled

This commit is contained in:
Pieter Vander Vennet 2024-04-27 00:29:10 +02:00
parent 40efc9aefd
commit 46211e4c2e
3 changed files with 12 additions and 1 deletions

View file

@ -287,7 +287,7 @@
<If condition={featureSwitches.featureSwitchEnableLogin}>
{#if state.layout.hasPresets() || state.layout.hasNoteLayer()}
<button
class="pointer-events-auto w-fit"
class="pointer-events-auto w-fit low-interaction"
class:disabled={$currentZoom < Constants.minZoomLevelToAddNewPoint}
on:click={() => {
state.openNewDialog()