update
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-04 11:00:07 -06:00
parent e6e4d71b1c
commit 711c446f74

View File

@@ -26,39 +26,44 @@ onMounted(receive)
@click="receive" @click="receive"
v-if="hitokoto.sentence" v-if="hitokoto.sentence"
> >
<div class="sentence">{{ hitokoto.sentence }}</div> <span class="from">{{ "来自 " + hitokoto.from }}</span>
<div class="from">{{ "来自 " + hitokoto.from }}</div> <span class="sentence">{{ hitokoto.sentence }}</span>
</div> </div>
</template> </template>
<style scoped> <style scoped>
.hitokoto { .hitokoto {
cursor: pointer; cursor: pointer;
height: 34px; height: 36px;
min-width: 0; min-width: 0;
display: flex; display: flow-root;
flex-direction: column; overflow: hidden;
align-items: flex-end;
justify-content: center;
text-align: right; text-align: right;
line-height: 18px;
word-break: break-all;
}
.hitokoto::before {
content: "";
float: right;
width: 0;
height: 18px;
} }
.hitokoto .sentence { .hitokoto .sentence {
width: 100%; text-align: right;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
white-space: nowrap;
line-height: 18px;
} }
.hitokoto .from { .hitokoto .from {
width: 100%; float: right;
clear: right;
max-width: min(45%, 260px);
margin-left: 8px;
text-align: right; text-align: right;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
font-size: 12px; font-size: 12px;
line-height: 16px; line-height: 18px;
color: grey; color: grey;
} }
</style> </style>