mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 21:33:02 +01:00
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:
@@ -1047,3 +1047,31 @@
|
|||||||
--header-height: 4rem;
|
--header-height: 4rem;
|
||||||
--header-height-mobile: 7rem;
|
--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;
|
||||||
|
}
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<section>
|
<section>
|
||||||
<BaseSectionHeader class="mb-2 mt-4 flex items-center justify-between">
|
<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") }}
|
{{ $t("components.item.view.selectable.items") }}
|
||||||
<Badge>
|
<Badge>
|
||||||
{{ items.length }}
|
{{ items.length }}
|
||||||
|
|||||||
@@ -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>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user