limit :scope to messageResponse
3clyp50 committed
Jan 27, 2026 at 22:14 UTC
8a782914c977ac9fbfb50cc3b30487060132c0e7
1 file changed
+2
-2
webui/js/messages.js
+2
-2
@@ -671,7 +671,7 @@ function drawStandaloneMessage({
671
// Render action buttons: get/create container, clear, append
672
const actionButtonsContainer = ensureChild(
673
messageDiv,
674
- ":scope > .step-action-buttons",
674
+ ".step-action-buttons",
675
"div",
676
"step-action-buttons",
677
);
@@ -1118,7 +1118,7 @@ export function drawMessageUser({
1118
// Look for direct child only to avoid finding nested code block buttons
1119
const actionButtonsContainer = ensureChild(
1120
messageDiv,
1121
- ":scope > .step-action-buttons",
1121
+ ".step-action-buttons",
1122
"div",
1123
"step-action-buttons",
1124
);