Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Realign the work rows when the chat column moves

Fei2411aba646e8a9d1
diff --git a/ds-bot/client.js b/ds-bot/client.js
index 806b55f1..ea2b7877 100644
--- a/ds-bot/client.js
+++ b/ds-bot/client.js
@@ -10885,7 +10885,7 @@ function useFlowColumn(ref, active, key) {
};
place();
const observer = new ResizeObserver(place);
- observer.observe(flow);
+ for (const target of [flow, flow.parentElement, node.parentElement]) if (target) observer.observe(target);
return () => observer.disconnect();
}, [active, key]);
}
diff --git a/ds-bot/src/client/member-status.js b/ds-bot/src/client/member-status.js
index 9b9226a5..d7eb2a86 100644
--- a/ds-bot/src/client/member-status.js
+++ b/ds-bot/src/client/member-status.js
@@ -129,7 +129,9 @@ function useFlowColumn(ref, active, key) {
}
place()
const observer = new ResizeObserver(place)
- observer.observe(flow)
+ // The column is centered in its scroller, so it moves without resizing when the
+ // scroller or the rows' own container changes width.
+ for (const target of [flow, flow.parentElement, node.parentElement]) if (target) observer.observe(target)
return () => observer.disconnect()
}, [active, key])
}