From 940a7e9a211270ab9473c259cca77642c1c8c80b Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 2 Dec 2024 16:39:33 -0500 Subject: [PATCH] Changes after major Svelte update. --- src/lib/element_input_files_tbl.svelte | 3 ++- src/lib/element_tiptap_editor.svelte | 3 ++- tailwind.config.ts | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/element_input_files_tbl.svelte b/src/lib/element_input_files_tbl.svelte index cb6567e1..4c60ea87 100644 --- a/src/lib/element_input_files_tbl.svelte +++ b/src/lib/element_input_files_tbl.svelte @@ -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"> - + + {file_list_item.filename} diff --git a/src/lib/element_tiptap_editor.svelte b/src/lib/element_tiptap_editor.svelte index bf64785a..d33e4eea 100644 --- a/src/lib/element_tiptap_editor.svelte +++ b/src/lib/element_tiptap_editor.svelte @@ -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" > + diff --git a/tailwind.config.ts b/tailwind.config.ts index 9c0b5aff..acec7cab 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -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',