openvibers/openvibe.live Commits

Names wrap before they are ever cut: recently online, the chat's people, the feed, the Rundown, viewer places (#816)

OP OpenVibers committed 2 days ago · ddd75d382e · 4 files, +5 −5

openvibe.design rule names-are-never-cut (the owner: "labels and text … don't get cut off so easily, especially
usernames"): five name styles drop nowrap and the ellipsis for overflow-wrap: anywhere (.streamer-group-name,
.chat-users-name, .cf-name, .rd-day-who, .ovp-name).

Changes

ddiff --git a/public/css/features/content.css b/public/css/features/content.css
iindex f73df578..d198e424 100644
---- a/public/css/features/content.css
++++ b/public/css/features/content.css
@@@ -322,7 +322,7 @@ a.cf-media:hover .cf-play, .cf-media--clip:not(.is-playing) .cf-play { opacity:
.cf-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 0.82rem; color: var(--text-muted); min-width: 0; }
.cf-chan { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; color: var(--text-secondary); font-weight: 600; text-decoration: none; }
a.cf-chan:hover .cf-name { color: var(--text-primary); text-decoration: underline; }
--.cf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
++.cf-name { overflow-wrap: anywhere; }
.cf-av {
flex: none;
width: 26px;
ddiff --git a/public/css/features/rundown.css b/public/css/features/rundown.css
iindex d2e729a2..3158a203 100644
---- a/public/css/features/rundown.css
++++ b/public/css/features/rundown.css
@@@ -559,7 +559,7 @@ body.rd-sheet-open { overflow: hidden; }
.rd-day-it::before { content: ""; position: absolute; z-index: 1; top: -13px; left: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-primary); box-shadow: inset 0 0 0 3px var(--accent); }
.rd-day-when { display: flex; align-items: baseline; gap: 8px; margin: 0; min-width: 0; font-size: 0.86rem; }
.rd-day-when time { font-weight: 800; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--accent-light, var(--accent)) 60%, var(--text-primary)); white-space: nowrap; }
--.rd-day-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--text-primary); text-decoration: none; }
++.rd-day-who { min-width: 0; font-weight: 700; color: var(--text-primary); text-decoration: none; overflow-wrap: anywhere; }
.rd-day-who:hover, .rd-day-topic:hover { text-decoration: underline; }
.rd-day-topic { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--text-primary); background: color-mix(in srgb, var(--accent) 16%, transparent); text-decoration: none; }
.rd-day-take { margin: 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.45; }
ddiff --git a/public/css/features/viewer-places.css b/public/css/features/viewer-places.css
iindex d32689ae..f73da867 100644
---- a/public/css/features/viewer-places.css
++++ b/public/css/features/viewer-places.css
@@@ -18,7 +18,7 @@
.ovp-list { list-style: none; margin: 4px 0 0; padding: 0; }
.ovp-row { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; }
.ovp-ico { display: inline-grid; place-items: center; width: 20px; flex: none; color: var(--ovp-c, var(--accent)); font-size: 1rem; }
--.ovp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
++.ovp-name { overflow-wrap: anywhere; }
.ovp-link {
display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 36px; color: inherit; text-decoration: none;
}
ddiff --git a/public/css/style.css b/public/css/style.css
iindex 5113017f..1723a7e5 100644
---- a/public/css/style.css
++++ b/public/css/style.css
@@@ -990,7 +990,7 @@ body.theme-light .stream-card.is-live::before { opacity: .35; }
/* ═══════════════════════════════════════════════════════════════
RECENTLY ONLINE — GROUPED STREAMER CARDS
═══════════════════════════════════════════════════════════════ */
--.streamer-group-name { font-weight: 650; font-size: 0.95rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
++.streamer-group-name { font-weight: 650; font-size: 0.95rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.streamer-group-stream-thumb {
width: 72px; height: 40px; border-radius: 4px;
overflow: hidden; background: var(--bg-tertiary);
@@@ -2519,7 +2519,7 @@ html[data-ov-motion=off] .ov-rail-track{scroll-behavior: auto}
display: flex; align-items: center; justify-content: center;
background: var(--bg-secondary); color: var(--text-muted); font-size: 0.65rem;
}
--.chat-users-name { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
++.chat-users-name { font-size: 0.82rem; overflow-wrap: anywhere; }
.chat-users-badge {
font-size: 0.65rem; padding: 1px 4px; border-radius: 3px; flex-shrink: 0; margin-left: auto;
}