diff --git a/src/assets/utils.css b/src/assets/utils.css
index 840e4ee..fd368b0 100644
--- a/src/assets/utils.css
+++ b/src/assets/utils.css
@@ -2,7 +2,6 @@ html,
body,
#app,
.v-application {
- overflow: auto !important;
font-family: "Roboto Sans", ui-sans-serif, system-ui, sans-serif;
}
diff --git a/src/components/chat/ChatEditor.vue b/src/components/chat/ChatEditor.vue
index e3ad940..6899c38 100644
--- a/src/components/chat/ChatEditor.vue
+++ b/src/components/chat/ChatEditor.vue
@@ -13,22 +13,53 @@
v-model="data.content"
@keyup.ctrl.enter="sendMessage"
@keyup.meta.enter="sendMessage"
+ @paste="pasteMedia"
>
+
+
+
+
+
+
+
+
+
+
+
+ Uploading your media, please stand by...
+
+
+
Something went wrong... {{ error }}
\ No newline at end of file
+
+function resetEditor() {
+ chat.value?.reset()
+ data.value = {
+ content: "",
+ attachments: []
+ }
+}
+
+function pasteMedia(evt: ClipboardEvent) {
+ const files = evt.clipboardData?.files
+ if (files) {
+ Array.from(files).forEach((item) => {
+ attachments.value.upload(item)
+ })
+ }
+}
+
+
+
diff --git a/src/components/chat/ChatMessage.vue b/src/components/chat/ChatMessage.vue
index 8dd836a..a83640c 100644
--- a/src/components/chat/ChatMessage.vue
+++ b/src/components/chat/ChatMessage.vue
@@ -12,11 +12,19 @@
{{ props.item?.sender.account.nick }}
{{ props.item?.content }}
+
+
diff --git a/src/components/chat/parts/Attachments.vue b/src/components/chat/parts/Attachments.vue
new file mode 100644
index 0000000..e3a5433
--- /dev/null
+++ b/src/components/chat/parts/Attachments.vue
@@ -0,0 +1,141 @@
+
+ emits('update:show', val)"
+ >
+
+
+
+
+ Media list
+
+
+
+ {{ getFileType(item) }} ยท {{ formatBytes(item.filesize) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/chat/renderer/MessageAttachment.vue b/src/components/chat/renderer/MessageAttachment.vue
new file mode 100644
index 0000000..8d10dde
--- /dev/null
+++ b/src/components/chat/renderer/MessageAttachment.vue
@@ -0,0 +1,97 @@
+
+
+ Attached {{ props.attachments.length }} attachment(s)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/publish/ArticleEditor.vue b/src/components/publish/ArticleEditor.vue
index ba59c44..4f0870f 100644
--- a/src/components/publish/ArticleEditor.vue
+++ b/src/components/publish/ArticleEditor.vue
@@ -262,10 +262,7 @@ watch(
}
.snackbar-progress {
- margin-left: -16px;
- margin-right: -16px;
- margin-bottom: -14px;
- margin-top: 12px;
+ margin: 12px -16px -14px;
width: calc(100% + 64px);
}
diff --git a/src/components/publish/MomentEditor.vue b/src/components/publish/MomentEditor.vue
index 8b6c7c8..ae33a1c 100644
--- a/src/components/publish/MomentEditor.vue
+++ b/src/components/publish/MomentEditor.vue
@@ -188,10 +188,7 @@ watch(