fix(files_versions): give the version label a min width so it does not get invisible if the author name is long

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
Julien Veyssier
2025-06-16 14:49:16 +02:00
parent 023bbe7409
commit b8fbd0c487

View File

@ -45,7 +45,10 @@
disable-menu
disable-tooltip
:show-user-status="false" />
<div>{{ versionAuthor }}</div>
<div class="version__info__author_name"
:title="versionAuthor">
{{ versionAuthor }}
</div>
</div>
</div>
</template>
@ -349,12 +352,19 @@ export default defineComponent({
gap: 0.5rem;
color: var(--color-main-text);
font-weight: 500;
overflow: hidden;
&__label {
font-weight: 700;
// Fix overflow on narrow screens
overflow: hidden;
text-overflow: ellipsis;
min-width: 110px;
}
&__author_name {
overflow: hidden;
text-overflow: ellipsis;
}
&__date {