fix: long text without line breaks

This commit is contained in:
Hakadao
2023-08-20 01:20:15 +08:00
parent 760b7f0743
commit b608c78ff6
2 changed files with 3 additions and 2 deletions

View File

@@ -368,7 +368,8 @@ function scrollToTop(element: HTMLElement, duration: number) {
<h3
class="keep-two-lines"
overflow="hidden"
text="overflow-ellipsis"
text="ellipsis"
break-anywhere
>
{{ historyItem.title }}
</h3>

View File

@@ -382,7 +382,7 @@ function scrollToTop(element: HTMLElement, duration: number) {
<div flex="~" justify="between" w="full">
<div>
<span>{{ `${moment.name} ${t('topbar.moments_dropdown.uploaded')}` }}</span>
<div overflow="hidden" text="overflow-ellipsis">
<div overflow-hidden text-ellipsis break-anywhere>
{{ moment.title }}
</div>
<div