From bdf19ebb43c7e8732b2b2aaad86c3c0ce211b1ce Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sun, 3 May 2026 10:15:38 -0600 Subject: [PATCH] fix UI --- src/shared/components/Hitokoto.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/shared/components/Hitokoto.vue b/src/shared/components/Hitokoto.vue index 484687e..eaaf7ea 100644 --- a/src/shared/components/Hitokoto.vue +++ b/src/shared/components/Hitokoto.vue @@ -34,19 +34,33 @@ onMounted(receive) .hitokoto { cursor: pointer; height: 34px; + min-width: 0; + display: flex; + flex-direction: column; + align-items: flex-end; + justify-content: center; + text-align: right; } .hitokoto .sentence { + width: 100%; max-width: 400px; text-overflow: ellipsis; overflow: hidden; word-break: break-all; white-space: nowrap; + line-height: 18px; } .hitokoto .from { - float: right; + width: 100%; + max-width: 400px; + text-align: right; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; font-size: 12px; + line-height: 16px; color: grey; }