update
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user