From e6e4d71b1cdfb94b210cee672f8be518c221aeb1 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sun, 3 May 2026 10:22:03 -0600 Subject: [PATCH] fix UI --- src/oj/problem/list.vue | 26 ++++++++++++++++++++++---- src/shared/components/Hitokoto.vue | 16 ++++++++++++++-- 2 files changed, 36 insertions(+), 6 deletions(-) diff --git a/src/oj/problem/list.vue b/src/oj/problem/list.vue index ede8e39..db1cb40 100644 --- a/src/oj/problem/list.vue +++ b/src/oj/problem/list.vue @@ -220,7 +220,7 @@ function rowProps(row: ProblemFiltered) { - + @@ -273,8 +273,8 @@ function rowProps(row: ProblemFiltered) { - - + + - + diff --git a/src/shared/components/Hitokoto.vue b/src/shared/components/Hitokoto.vue index 484687e..acf268d 100644 --- a/src/shared/components/Hitokoto.vue +++ b/src/shared/components/Hitokoto.vue @@ -34,19 +34,31 @@ 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 { - max-width: 400px; + width: 100%; text-overflow: ellipsis; overflow: hidden; word-break: break-all; white-space: nowrap; + line-height: 18px; } .hitokoto .from { - float: right; + width: 100%; + text-align: right; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; font-size: 12px; + line-height: 16px; color: grey; }