Add ellipsis to dialog header h2 when content is too long
This commit is contained in:
parent
a750954940
commit
fddde41166
2 changed files with 5 additions and 1 deletions
|
|
@ -34,6 +34,10 @@
|
|||
text-align: center;
|
||||
padding: 0 15rem;
|
||||
line-height: 2.5rem;
|
||||
max-height: 1lh;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.dialog [data-pc-name="pcclosebutton"] {
|
||||
color: var(--color-white);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
>
|
||||
<template #header>
|
||||
<a class="btn">Valider et envoyer le brief</a>
|
||||
<h2 class="font-serif text-lg">
|
||||
<h2 class="font-serif text-lg" :title="openedFile?.label.length ? openedFile.label : openedFile.name">
|
||||
{{ openedFile?.label.length ? openedFile.label : openedFile.name }}
|
||||
</h2>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue