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