Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): truncate the channel and status pane heading
Yudhi Armyndharisf053e278d62b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6eefde7ce..289285c31 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- The dashboard chat room shrinks within its layout instead of overflowing it, so a long contact or group name no longer pushes the send button out of reach. Thanks @rainerigius.- The chat composer shrinks with its pane, so the send button stays reachable. It sat outside the layout's clip below a 1014px viewport with the navigation expanded, and on any phone 402 CSS px or narrower.+- The channel and status pane heading truncates with an ellipsis and carries its full text in a tooltip. A long title previously ran past the panel edge, cut mid-glyph with nothing to signal it.## [0.23.0] - 2026-08-20diff --git a/dashboard/src/pages/Chats.css b/dashboard/src/pages/Chats.cssindex 9d87d2904..dbc98e17b 100644--- a/dashboard/src/pages/Chats.css+++ b/dashboard/src/pages/Chats.css@@ -1310,6 +1310,12 @@text-transform: none;letter-spacing: normal;margin: 0;+ /* Same treatment as the chat header's h3. `overflow: hidden` is the load-bearing declaration: it+ both clips and zeroes this flex item's automatic minimum, so no min-width is needed here or on+ an ancestor. Without it the other two are inert and a long title runs past the panel edge. */+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;}.chats-page .messages-list {diff --git a/dashboard/src/pages/Chats.tsx b/dashboard/src/pages/Chats.tsxindex 416695693..8cac4e899 100644--- a/dashboard/src/pages/Chats.tsx+++ b/dashboard/src/pages/Chats.tsx@@ -774,6 +774,11 @@ export function Chats() {? (groupedStatuses.find(g => g.contact.id === activeStatusContactId) ?? null): null;+ // The pane heading truncates with an ellipsis, so the untruncated text has to reach the tooltip.+ const activeStatusTitle = activeStatusGroup+ ? (activeStatusGroup.contact.name ?? activeStatusGroup.contact.pushName ?? activeStatusGroup.contact.id)+ : '';+// Same open-at-newest behavior for the status viewer pane, keyed off the active contact and its// item list. Declared after activeStatusGroup: the viewer follows refetches because the deps are// the derived group's items, not a click-time snapshot.@@ -955,7 +960,7 @@ export function Chats() {<ArrowLeft size={20} /></button><Megaphone size={20} />- <h2>{activeChannel.name}</h2>+ <h2 title={activeChannel.name}>{activeChannel.name}</h2></header><div className="messages-list" ref={channelFeedRef}>{channelMessages.isLoading ? (@@ -997,11 +1002,7 @@ export function Chats() {<ArrowLeft size={20} /></button><CircleDashed size={20} />- <h2>- {activeStatusGroup.contact.name ??- activeStatusGroup.contact.pushName ??- activeStatusGroup.contact.id}- </h2>+ <h2 title={activeStatusTitle}>{activeStatusTitle}</h2></header><div className="messages-list" ref={statusFeedRef}>{activeStatusGroup.items.map(item => (