fix(ui): wrap lab names and token names between words

The lab list wrapped a long analyte name with overflow-wrap: anywhere,
which cut a word that would have fit on the next line in the middle
(Hämo|globin). It now wraps between words and hyphenates in the page
language, cutting only a word wider than the column. Token and client
names in the API and MCP settings used break-all for the same reason
and now wrap the same way; addresses and codes keep break-all.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 13:15:28 +02:00
1 parent 60be63bcd1
commit ff583104a8
9 files changed
+27 -375

No files matched your search

+2 -2
View File
@@ -657,7 +657,7 @@ function ApiTokensCard() {
className="bg-muted/30 border-border space-y-2 rounded-lg border p-3"
>
<div className="flex flex-wrap items-start justify-between gap-2">
<p className="min-w-0 flex-1 text-sm font-medium break-all">
<p className="min-w-0 flex-1 text-sm font-medium break-words">
{tok.name}
</p>
{isExpired ? (
@@ -803,7 +803,7 @@ function ApiTokensCard() {
key={tok.id}
className="bg-muted/30 border-border space-y-1.5 rounded-lg border p-3"
>
<p className="text-sm font-medium break-all">
<p className="text-sm font-medium break-words">
{tok.name}
</p>
<p className="text-muted-foreground text-xs">
+2 -2
View File
@@ -148,7 +148,7 @@ function McpConnectionsCard() {
className="bg-muted/30 border-border space-y-2 rounded-lg border p-3"
>
<div className="flex flex-wrap items-start justify-between gap-2">
<p className="min-w-0 flex-1 text-sm font-medium break-all">
<p className="min-w-0 flex-1 text-sm font-medium break-words">
{conn.clientName}
</p>
<Badge className="bg-success/15 text-success text-xs">
@@ -475,7 +475,7 @@ function McpTokensCard() {
className="bg-muted/30 border-border space-y-2 rounded-lg border p-3"
>
<div className="flex flex-wrap items-start justify-between gap-2">
<p className="min-w-0 flex-1 text-sm font-medium break-all">
<p className="min-w-0 flex-1 text-sm font-medium break-words">
{tok.name}
</p>
{isExpired ? (