diff --git a/src/views/layout/components/BlogBox.vue b/src/views/layout/components/BlogBox.vue
index 2f7a3fb..1713309 100644
--- a/src/views/layout/components/BlogBox.vue
+++ b/src/views/layout/components/BlogBox.vue
@@ -2,10 +2,10 @@
-
+
{{ newLog.timestamp | parseTime('{h}:{i}:{s}') }}
- {{ newLog.content }}
+ {{ newLog.content }}
@@ -99,4 +99,15 @@ export default {
overflow: hidden;
display: block;
}
+
+.timestamp,
+.content {
+ display: inline-block;
+ /* 确保元素可以应用宽度 */
+ max-width: 60vw;
+ /* 根据需要设置宽度 */
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}