chore: Tweak popup text

This commit is contained in:
Sidharth Vinod
2025-03-20 12:17:15 -07:00
parent 41019ffa9a
commit 866ca5f747
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -8,11 +8,13 @@
let {
children,
shouldCheckDiagramType = true,
side = 'bottom'
side = 'bottom',
labelPrefix = 'Opens a new tab in'
}: {
children: Snippet;
shouldCheckDiagramType?: boolean;
side?: ComponentProps<typeof Tooltip.Content>['side'];
labelPrefix?: string;
} = $props();
let shouldDisableComponent = $derived(
@@ -37,7 +39,8 @@
{:else}
<ExternalLinkIcon />
<span class="flex items-center gap-1">
Opens a new tab in <div class="text-accent">MermaidChart.com</div>
{labelPrefix}
<div class="text-accent">MermaidChart.com</div>
</span>
{/if}
</div>
+1 -1
View File
@@ -94,7 +94,7 @@
Live Editor
</a>
<McWrapper>
<McWrapper labelPrefix="Opens the current diagram in">
<div class="hidden items-center justify-center gap-4 md:flex">
<Separator orientation="vertical" />
<Switch