|
1 | 1 | <script lang="ts"> |
2 | 2 | import { onMount } from 'svelte'; |
3 | 3 | import { base } from '$app/paths'; |
4 | | - import { fly, fade, scale } from 'svelte/transition'; |
| 4 | + import { fly, scale } from 'svelte/transition'; |
5 | 5 | import { cubicOut } from 'svelte/easing'; |
6 | 6 | import FlowCanvas from '$lib/components/FlowCanvas.svelte'; |
7 | 7 | import SimulationPanel from '$lib/components/panels/SimulationPanel.svelte'; |
|
1036 | 1036 | use:tooltip={{ text: $currentFileName ? `Save '${$currentFileName}'` : "Save", shortcut: "Ctrl+S" }} |
1037 | 1037 | aria-label="Save" |
1038 | 1038 | > |
1039 | | - <span class="icon-crossfade"> |
1040 | | - {#if saveFlash === 'save'} |
1041 | | - <span class="icon-crossfade-item" in:fade={{ duration: 200 }} out:fade={{ duration: 200 }}> |
1042 | | - <Icon name="check" size={16} /> |
1043 | | - </span> |
1044 | | - {:else} |
1045 | | - <span class="icon-crossfade-item" in:fade={{ duration: 200 }} out:fade={{ duration: 200 }}> |
1046 | | - <Icon name="upload" size={16} /> |
1047 | | - </span> |
1048 | | - {/if} |
1049 | | - </span> |
| 1039 | + <Icon name={saveFlash === 'save' ? 'check' : 'upload'} size={16} /> |
1050 | 1040 | </button> |
1051 | 1041 | <button |
1052 | 1042 | class="toolbar-btn" |
1053 | 1043 | onclick={() => handleSaveAs()} |
1054 | 1044 | use:tooltip={{ text: "Save As", shortcut: "Ctrl+Shift+S" }} |
1055 | 1045 | aria-label="Save As" |
1056 | 1046 | > |
1057 | | - <span class="icon-crossfade"> |
1058 | | - {#if saveFlash === 'save-as'} |
1059 | | - <span class="icon-crossfade-item" in:fade={{ duration: 200 }} out:fade={{ duration: 200 }}> |
1060 | | - <Icon name="check" size={16} /> |
1061 | | - </span> |
1062 | | - {:else} |
1063 | | - <span class="icon-crossfade-item" in:fade={{ duration: 200 }} out:fade={{ duration: 200 }}> |
1064 | | - <Icon name="upload-plus" size={16} /> |
1065 | | - </span> |
1066 | | - {/if} |
1067 | | - </span> |
| 1047 | + <Icon name={saveFlash === 'save-as' ? 'check' : 'upload-plus'} size={16} /> |
1068 | 1048 | </button> |
1069 | 1049 | <button class="toolbar-btn" onclick={() => exportDialogOpen = true} use:tooltip={{ text: "Python Code", shortcut: "Ctrl+E" }} aria-label="View Python Code"> |
1070 | 1050 | <Icon name="braces" size={16} /> |
|
1467 | 1447 | pointer-events: none; |
1468 | 1448 | } |
1469 | 1449 |
|
1470 | | - .icon-crossfade { |
1471 | | - position: relative; |
1472 | | - display: grid; |
1473 | | - place-items: center; |
1474 | | - } |
1475 | | -
|
1476 | | - .icon-crossfade-item { |
1477 | | - grid-area: 1 / 1; |
1478 | | - display: flex; |
1479 | | - } |
1480 | | -
|
1481 | 1450 | /* Logo overlay */ |
1482 | 1451 | .logo-overlay { |
1483 | 1452 | position: fixed; |
|
0 commit comments