diff --git a/js/src/assets/oruga-tailwindcss.css b/js/src/assets/oruga-tailwindcss.css index e0e9830f..502d6741 100644 --- a/js/src/assets/oruga-tailwindcss.css +++ b/js/src/assets/oruga-tailwindcss.css @@ -142,7 +142,7 @@ body { } .dropdown-item-active { - @apply bg-white text-black; + @apply bg-white dark:bg-zinc-700 dark:text-zinc-100 text-black; } .dropdown-button { @apply inline-flex gap-1; diff --git a/js/src/components/Comment/CommentTree.vue b/js/src/components/Comment/CommentTree.vue index 22d73c1b..320c00b3 100644 --- a/js/src/components/Comment/CommentTree.vue +++ b/js/src/components/Comment/CommentTree.vue @@ -1,10 +1,9 @@ - diff --git a/js/src/components/Editor/RichEditorKeyboardSubmit.ts b/js/src/components/Editor/RichEditorKeyboardSubmit.ts new file mode 100644 index 00000000..e0c8d4b6 --- /dev/null +++ b/js/src/components/Editor/RichEditorKeyboardSubmit.ts @@ -0,0 +1,22 @@ +import { Extension } from "@tiptap/vue-3"; + +export interface RichEditorKeyboardSubmitOptions { + submit: () => void; +} + +export default Extension.create({ + name: "RichEditorKeyboardSubmit", + addOptions() { + return { + submit: () => ({}), + }; + }, + addKeyboardShortcuts() { + return { + "Ctrl-Enter": () => { + this.options.submit(); + return true; + }, + }; + }, +}); diff --git a/js/src/components/Event/EventCard.vue b/js/src/components/Event/EventCard.vue index 65bd8f68..a7fc8ac8 100644 --- a/js/src/components/Event/EventCard.vue +++ b/js/src/components/Event/EventCard.vue @@ -9,7 +9,7 @@ :isInternal="isInternal" >
diff --git a/js/src/components/Report/ReportCard.vue b/js/src/components/Report/ReportCard.vue index 136493bd..3538b253 100644 --- a/js/src/components/Report/ReportCard.vue +++ b/js/src/components/Report/ReportCard.vue @@ -1,23 +1,35 @@