From 735fac4307d31a04d5d8cefcf36e83eb73663747 Mon Sep 17 00:00:00 2001 From: Michael Wedl Date: Fri, 6 Sep 2024 10:09:47 +0200 Subject: [PATCH 1/2] Improve MDE file upload indicator --- frontend/src/components/FullHeightPage.vue | 6 +++- frontend/src/components/Markdown/Page.vue | 7 ++++- .../src/components/Markdown/Statusbar.vue | 30 +++++++++++-------- 3 files changed, 28 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/FullHeightPage.vue b/frontend/src/components/FullHeightPage.vue index 95138ccb1..54ccbbb3a 100644 --- a/frontend/src/components/FullHeightPage.vue +++ b/frontend/src/components/FullHeightPage.vue @@ -1,12 +1,16 @@ diff --git a/frontend/src/components/Markdown/Page.vue b/frontend/src/components/Markdown/Page.vue index 33db920b2..9b2bb871a 100644 --- a/frontend/src/components/Markdown/Page.vue +++ b/frontend/src/components/Markdown/Page.vue @@ -34,6 +34,11 @@ + + @@ -43,7 +48,7 @@ import { MarkdownEditorMode } from '#imports'; const props = defineProps(makeMarkdownProps()); const emit = defineEmits(makeMarkdownEmits()); -const { editorView, markdownToolbarAttrs, markdownPreviewAttrs, onIntersect, focus, blur } = useMarkdownEditor({ +const { editorView, markdownToolbarAttrs, markdownStatusbarAttrs, markdownPreviewAttrs, onIntersect, focus, blur } = useMarkdownEditor({ props: computed(() => props), emit, extensions: markdownEditorPageExtensions(), diff --git a/frontend/src/components/Markdown/Statusbar.vue b/frontend/src/components/Markdown/Statusbar.vue index 6cd46bc50..36f1acf07 100644 --- a/frontend/src/components/Markdown/Statusbar.vue +++ b/frontend/src/components/Markdown/Statusbar.vue @@ -1,12 +1,15 @@ @@ -47,14 +50,15 @@ const wordCount = computed(() => { .mde-statusbar { width: 100%; font-size: smaller; - text-align: right; padding: 0.3em 1em; color: #959694; - span { - display: inline-block; - min-width: 4em; - margin-left: 1em; + .status-items { + span { + display: inline-block; + min-width: 4em; + margin-left: 1em; + } } } From 5bddb5a1961c2663fa99139b367ffdf0eade83ea Mon Sep 17 00:00:00 2001 From: Michael Wedl Date: Fri, 6 Sep 2024 10:35:50 +0200 Subject: [PATCH 2/2] Upload files in MDE statusbar --- .../src/components/Markdown/Statusbar.vue | 39 +++++++++++++++++-- frontend/src/composables/markdown.ts | 3 +- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/Markdown/Statusbar.vue b/frontend/src/components/Markdown/Statusbar.vue index 36f1acf07..343696ba2 100644 --- a/frontend/src/components/Markdown/Statusbar.vue +++ b/frontend/src/components/Markdown/Statusbar.vue @@ -1,8 +1,16 @@