Make all popover and drop-down buttons consistent

This commit is contained in:
Rūdolfs Ošiņš
2025-05-15 17:08:43 +02:00
committed by Sebastian Martinez
parent 7d977f22da
commit ac7189a1e9
23 changed files with 209 additions and 55 deletions
+4 -1
View File
@@ -5,14 +5,17 @@
import Icon from "@app/components/Icon.svelte";
import NakedButton from "@app/components/NakedButton.svelte";
import Popover from "@app/components/Popover.svelte";
let popoverExpanded: boolean = $state(false);
</script>
<Popover
popoverPadding="0"
popoverPositionTop="2.5rem"
bind:expanded={popoverExpanded}
popoverPositionRight="0">
{#snippet toggle(onclick)}
<NakedButton variant="ghost" {onclick}>
<NakedButton variant="ghost" {onclick} active={popoverExpanded}>
{#if $nodeRunning}
<Icon name="online" />
Online