From 60c23f90df8d22d1759d49ff898d7f5a227a5edb Mon Sep 17 00:00:00 2001 From: NoriDev Date: Wed, 3 Jan 2024 17:49:34 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/MkChatPreview.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/components/MkChatPreview.vue b/packages/frontend/src/components/MkChatPreview.vue index f5ca5d09c3..5af9cbe462 100644 --- a/packages/frontend/src/components/MkChatPreview.vue +++ b/packages/frontend/src/components/MkChatPreview.vue @@ -19,8 +19,10 @@ SPDX-License-Identifier: AGPL-3.0-only
- - @{{ Misskey.acct.toString(isMe(message) ? message.recipient : message.user) }} +
+ + @{{ Misskey.acct.toString(isMe(message) ? message.recipient : message.user) }} +
@@ -78,7 +80,6 @@ function isMe(message) { > header { display: flex; - align-items: center; margin-bottom: 2px; white-space: nowrap; overflow: hidden; @@ -92,7 +93,7 @@ function isMe(message) { .indicator { position: absolute; - top: 41px; + top: 50px; left: 12px; color: var(--indicator); font-size: 9px; @@ -103,10 +104,11 @@ function isMe(message) { padding: 0; font-weight: bold; transition: all 0.1s ease; + overflow: hidden; + text-overflow: ellipsis; } .username { - margin: 0 8px; overflow: hidden; text-overflow: ellipsis; } @@ -118,8 +120,8 @@ function isMe(message) { .avatar { float: left; - width: 42px; - height: 42px; + width: 52px; + height: 52px; margin: 0 16px 0 0; border-radius: 8px; transition: all 0.1s ease; @@ -160,7 +162,7 @@ function isMe(message) { } .avatar { - margin: 0 12px 0 0; + margin: 0 8px; } }