fix(item): remove line break in Items label in location view (#975)

fix: prevent items word wrapped in firefox

Signed-off-by: lekaf974 <matthieu.evrin@gmail.com>
This commit is contained in:
Matthieu Evrin
2025-09-01 17:52:14 -04:00
committed by GitHub
parent 52a6a31098
commit 790352da34
3 changed files with 29 additions and 33 deletions

View File

@@ -1047,3 +1047,31 @@
--header-height: 4rem;
--header-height-mobile: 7rem;
}
/* Non-scoped styles for regular text */
.break-all {
word-break: break-all;
max-width: 100%;
}
/* Handle very long words */
pre,
code,
a,
p,
span,
div,
td,
th,
li,
blockquote,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: anywhere;
word-break: normal;
hyphens: auto;
}

View File

@@ -30,7 +30,7 @@
<template>
<section>
<BaseSectionHeader class="mb-2 mt-4 flex items-center justify-between">
<div class="flex gap-2">
<div class="flex gap-2 text-nowrap">
{{ $t("components.item.view.selectable.items") }}
<Badge>
{{ items.length }}

View File

@@ -144,37 +144,5 @@
}
}
/* Non-scoped styles for regular text */
.break-all {
word-break: break-all;
max-width: 100%;
}
/* Handle very long words */
pre,
code,
a,
p,
span,
div,
td,
th,
li,
blockquote,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
</style>