Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(desktop): restore the window drag region in the empty tab bar area (#20931)

Inneia33198a93f36
diff --git a/src/features/Electron/titlebar/TabBar/index.tsx b/src/features/Electron/titlebar/TabBar/index.tsx
index 5b329c3a227..a3187af07b1 100644
--- a/src/features/Electron/titlebar/TabBar/index.tsx
+++ b/src/features/Electron/titlebar/TabBar/index.tsx
@@ -247,11 +247,14 @@ const TabBar = () => {
// row would visibly widen from compact to full once the measurement lands.
const measured = stripWidth > 0;
+ // The strip is flex: 1, so it owns the empty titlebar space after the last tab. It
+ // declares the drag region itself instead of relying on the TitleBar's — only the tabs
+ // and controls inside opt out with nodrag.
return (
<Flexbox
horizontal
align={'center'}
- className={styles.container}
+ className={cx(electronStylish.draggable, styles.container)}
gap={TAB_GAP}
ref={stripRef}
onPointerEnter={captureVisibleTabPreviews}