diff --git a/src/components/viewPost/tp-emoticon.vue b/src/components/viewPost/tp-emoticon.vue
index 147a914f..7f7bf6eb 100644
--- a/src/components/viewPost/tp-emoticon.vue
+++ b/src/components/viewPost/tp-emoticon.vue
@@ -8,9 +8,7 @@
@click="handleEmoticonClick"
@error="handleEmoticonError"
/>
-
- 自定义表情
-
+ 自定义表情
@@ -86,6 +84,11 @@ const image = computed(() => ({
size: props.data.insert.custom_emoticon.size.file_size,
},
}));
+const showLabel = computed(() => {
+ if (props.data.insert.custom_emoticon.size.width > 100) return true;
+ if (!emoticonEl.value) return false;
+ return emoticonEl.value.clientWidth > 100;
+});
console.log("tp-emoticon", props.data.insert.custom_emoticon);
diff --git a/src/components/viewPost/vp-overlay-image.vue b/src/components/viewPost/vp-overlay-image.vue
index fc0c476b..a8bf5fc5 100644
--- a/src/components/viewPost/vp-overlay-image.vue
+++ b/src/components/viewPost/vp-overlay-image.vue
@@ -30,7 +30,10 @@
大小:
{{ bytesToSize(props.image.attributes.size ?? 0) }}
-
+
尺寸:
{{ props.image.attributes.width }}x{{ props.image.attributes.height }}
@@ -41,19 +44,19 @@
-
+
mdi-format-color-fill
- mdi-magnify
- mdi-content-copy
- mdi-download
- mdi-close
+ mdi-magnify
+ mdi-content-copy
+ mdi-download
+ mdi-close
-