diff --git a/js/src/assets/oruga-tailwindcss.css b/js/src/assets/oruga-tailwindcss.css index e0e9830f2..502d67412 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 22d73c1ba..320c00b31 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 000000000..e0c8d4b6a --- /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 65bd8f681..a7fc8ac8c 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 136493bd0..3538b2535 100644 --- a/js/src/components/Report/ReportCard.vue +++ b/js/src/components/Report/ReportCard.vue @@ -1,23 +1,35 @@