Add tooltips
This commit is contained in:
@@ -70,8 +70,12 @@
|
|||||||
|
|
||||||
<Card on:select={tabSelectHandler} bind:isOpen {tabs} title="History">
|
<Card on:select={tabSelectHandler} bind:isOpen {tabs} title="History">
|
||||||
<div slot="actions">
|
<div slot="actions">
|
||||||
<button class="btn" on:click|stopPropagation={() => saveHistory()}>💾</button>
|
<button class="btn" on:click|stopPropagation={() => saveHistory()} title="Save current state"
|
||||||
<button class="btn" on:click|stopPropagation={() => clearHistory()}>❌</button>
|
>💾</button>
|
||||||
|
<button
|
||||||
|
class="btn"
|
||||||
|
on:click|stopPropagation={() => clearHistory()}
|
||||||
|
title="Delete all saved states">❌</button>
|
||||||
</div>
|
</div>
|
||||||
<ul class="p-2 space-y-2 overflow-auto h-56">
|
<ul class="p-2 space-y-2 overflow-auto h-56">
|
||||||
{#each $historyStore as { state, time, name }}
|
{#each $historyStore as { state, time, name }}
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import type monaco from 'monaco-editor';
|
import type monaco from 'monaco-editor';
|
||||||
import type { Mermaid } from 'mermaid';
|
import type { Mermaid } from 'mermaid';
|
||||||
import { version } from 'mermaid/package.json';
|
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
|
||||||
const mermaid: Mermaid = (window.mermaid as unknown) as Mermaid;
|
const mermaid: Mermaid = (window.mermaid as unknown) as Mermaid;
|
||||||
@@ -109,6 +108,7 @@
|
|||||||
{#if !$codeStore.autoSync}
|
{#if !$codeStore.autoSync}
|
||||||
<button
|
<button
|
||||||
class="bg-indigo-500 hover:bg-indigo-700 rounded px-1 mx-2"
|
class="bg-indigo-500 hover:bg-indigo-700 rounded px-1 mx-2"
|
||||||
|
title="Sync Diagram"
|
||||||
on:click={syncDiagram}>🔄</button>
|
on:click={syncDiagram}>🔄</button>
|
||||||
{/if}
|
{/if}
|
||||||
<label for="autoSync">
|
<label for="autoSync">
|
||||||
@@ -132,6 +132,7 @@
|
|||||||
<button
|
<button
|
||||||
slot="actions"
|
slot="actions"
|
||||||
class="rounded shadow px-2 bg-indigo-500 hover:bg-indigo-700"
|
class="rounded shadow px-2 bg-indigo-500 hover:bg-indigo-700"
|
||||||
|
title="View diagram in new page"
|
||||||
on:click|stopPropagation={() => viewDiagram()}>View</button>
|
on:click|stopPropagation={() => viewDiagram()}>View</button>
|
||||||
|
|
||||||
<div class="flex-1 overflow-auto">
|
<div class="flex-1 overflow-auto">
|
||||||
|
|||||||
Reference in New Issue
Block a user