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