Changes after major Svelte update.

This commit is contained in:
Scott Idem
2024-12-02 16:39:33 -05:00
parent 1f6793927b
commit 940a7e9a21
3 changed files with 11 additions and 2 deletions

View File

@@ -326,7 +326,8 @@ function remove_file_from_filelist(index) {
on:click|preventDefault={() => { (remove_file_from_filelist(file_index)); }}
class="btn btn-md variant-soft-warning hover:variant-filled-secondary m-1"
title="Remove file from upload list">
<span class="fas fa-minus"></span>
<span class="fas fa-minus"></span>
<span class="hidden">Remove</span>
</button>
</td>
<td class="file_filename">{file_list_item.filename}</td>

View File

@@ -3,7 +3,7 @@ import { onMount, onDestroy } from 'svelte';
import { fade } from 'svelte/transition'
import { cubicOut } from 'svelte/easing';
// import ShadEditor from '$lib/components/shad-editor/shad-editor.svelte';
import ShadEditor from '$lib/components/shad-editor/shad-editor.svelte';
// Import Tiptap related modules
@@ -572,6 +572,7 @@ let mouse_leave_wait: number = 2000;
title="Undo"
>
<span class="fas fa-undo mx-1"></span>
<span class="hidden">Undo</span>
</button>
<!-- Redo (not working???) -->

View File

@@ -21,6 +21,13 @@ export default {
colors: {
// flowbite-svelte
primary: { 50: '#FFF5F2', 100: '#FFF1EE', 200: '#FFE4DE', 300: '#FFD5CC', 400: '#FFBCAD', 500: '#FE795D', 600: '#EF562F', 700: '#EB4F27', 800: '#CC4522', 900: '#A5371B'},
muted: {
DEFAULT: '#f5f5f5', // Define the default muted color
50: 'rgba(0, 0, 0, 0.02)',
100: 'rgba(0, 0, 0, 0.05)',
foreground: '#f5f5f5', // Define the foreground muted color
background: '#f5f5f5', // Define the background muted color
},
},
opacity: {
97: '.97',