From 846236203323f736d0d02cc7c2fe0b664a701828 Mon Sep 17 00:00:00 2001 From: Seviche Date: Sat, 1 Apr 2023 18:27:16 +0800 Subject: [PATCH] feat: add style to slashmenu --- src/components/Tiptap/CommandsList.vue | 57 +++++--------------------- src/components/Tiptap/suggestion.js | 6 +-- tailwind.config.ts | 3 ++ 3 files changed, 16 insertions(+), 50 deletions(-) diff --git a/src/components/Tiptap/CommandsList.vue b/src/components/Tiptap/CommandsList.vue index dc7879c..a7a54eb 100644 --- a/src/components/Tiptap/CommandsList.vue +++ b/src/components/Tiptap/CommandsList.vue @@ -69,52 +69,15 @@ export default { - - diff --git a/src/components/Tiptap/suggestion.js b/src/components/Tiptap/suggestion.js index 205a660..46d1d8a 100644 --- a/src/components/Tiptap/suggestion.js +++ b/src/components/Tiptap/suggestion.js @@ -9,7 +9,7 @@ export default { items: ({ query }) => { return [ { - title: 'H1', + title: 'Heading 1', icon: 'i-tabler-h-1', command: ({ editor, range }) => { editor @@ -21,7 +21,7 @@ export default { }, }, { - title: 'H2', + title: 'Heading 2', icon: 'i-tabler-h-2', command: ({ editor, range }) => { editor @@ -33,7 +33,7 @@ export default { }, }, { - title: 'H3', + title: 'Heading 3', icon: 'i-tabler-h-3', command: ({ editor, range }) => { editor diff --git a/tailwind.config.ts b/tailwind.config.ts index c3a5b53..31e2243 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -13,4 +13,7 @@ export default { collections: getIconCollections(['tabler']), }), ], + daisyui: { + themes: false, + }, } satisfies Config