From 3af516f093c59092ec3b2b73a08f58bf3c835d6b Mon Sep 17 00:00:00 2001 From: "v.lagerev" Date: Mon, 11 May 2026 21:04:07 +0300 Subject: [PATCH] feat(direct-tabs): spread DM/Channels/Bots tabs edge-to-edge and underline active segment with purple bar on the header's grey rule --- .../client/direct/DirectStreamHeader.tsx | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/app/pages/client/direct/DirectStreamHeader.tsx b/src/app/pages/client/direct/DirectStreamHeader.tsx index d1c9c086..f33e98f7 100644 --- a/src/app/pages/client/direct/DirectStreamHeader.tsx +++ b/src/app/pages/client/direct/DirectStreamHeader.tsx @@ -24,7 +24,7 @@ const Segment = forwardRef( style={{ appearance: 'none', border: 'none', - background: active ? color.Background.ContainerActive : 'transparent', + background: 'transparent', color: color.Background.OnContainer, opacity: disabled ? 0.45 : 1, cursor: disabled ? 'default' : 'pointer', @@ -34,9 +34,26 @@ const Segment = forwardRef( fontWeight: active ? 600 : 500, fontSize: toRem(13), lineHeight: 1.2, + flex: 1, + position: 'relative', + display: 'flex', + alignItems: 'center', + justifyContent: 'center', }} > {label} + {active && ( + + )} ) ); @@ -54,8 +71,8 @@ export function DirectStreamHeader() { const navOpts = { replace: isNativePlatform() }; return ( - - + +