fix(webui): allow moving active group panes

This commit is contained in:
Xubin Ren
2026-08-14 19:55:25 +09:00
parent b378319d4a
commit 1437d1a75a
3 changed files with 20 additions and 7 deletions
+10 -2
View File
@@ -865,7 +865,12 @@ export const ChatList = memo(function ChatList({
: updated.has(s.chatId) && !topicActive
? "updated"
: null;
const canDragSession = !topicActive && !deleteSelectionMode;
const hasPaneMoveTarget = Boolean(onAttachPane)
&& paneGroupTargets.some((target) => (
target.key !== paneGroup?.tabKey && !target.atCapacity
));
const canDragSession = !deleteSelectionMode
&& (!topicActive || hasPaneMoveTarget);
const actionMenuId = `session:${s.key}`;
return (
<li
@@ -1332,7 +1337,10 @@ function ActivePaneRows({
const selected = selectedDeleteKeys.has(pane.key);
const isPinned = pinned.has(pane.key);
const isArchived = archived.has(pane.key);
const canDragSession = !active && !deleteSelectionMode;
const hasPaneMoveTarget = Boolean(onAttachPane)
&& moveTargets.some((target) => !target.atCapacity);
const canDragSession = !deleteSelectionMode
&& (!active || Boolean(onDetachPane) || hasPaneMoveTarget);
const actionMenuId = `pane:${pane.key}`;
return (