mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-29 14:50:34 +08:00
Make all popover and drop-down buttons consistent
This commit is contained in:
committed by
Sebastian Martinez
parent
7d977f22da
commit
ac7189a1e9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user