mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Fix inline node ID in the guide
This commit is contained in:
@@ -282,6 +282,7 @@
|
||||
<Popover
|
||||
popoverPadding="0"
|
||||
placement="bottom-start"
|
||||
styleDisplay={inline ? "inline-flex" : undefined}
|
||||
bind:expanded={cardExpanded}>
|
||||
{#snippet toggle(_onclick)}
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
offset?: number;
|
||||
popoverPadding?: string;
|
||||
expanded?: boolean;
|
||||
styleDisplay?: string;
|
||||
}
|
||||
|
||||
/* eslint-disable prefer-const */
|
||||
@@ -39,6 +40,7 @@
|
||||
offset: offsetPx = 4,
|
||||
popoverPadding,
|
||||
expanded = $bindable(false),
|
||||
styleDisplay = undefined,
|
||||
}: Props = $props();
|
||||
/* eslint-enable prefer-const */
|
||||
|
||||
@@ -109,7 +111,8 @@
|
||||
data-popover-id={id}
|
||||
data-expanded={expanded || undefined}
|
||||
bind:this={containerEl}
|
||||
class="container">
|
||||
class="container"
|
||||
style:display={styleDisplay}>
|
||||
{@render toggle(toggleFn)}
|
||||
|
||||
{#if expanded}
|
||||
|
||||
Reference in New Issue
Block a user