Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(conversations): keep widget script CSS values clear of the token lint (#7202)

oxoxDevbd72dc46bb31
diff --git a/app/src/features/conversations/tools/mcpUi/frameFit.ts b/app/src/features/conversations/tools/mcpUi/frameFit.ts
index a96b580dd5..413d348005 100644
--- a/app/src/features/conversations/tools/mcpUi/frameFit.ts
+++ b/app/src/features/conversations/tools/mcpUi/frameFit.ts
@@ -88,7 +88,7 @@ const FRAME_FIT_TEMPLATE = `(function () {
}
var maxWidth = cs.maxWidth === 'none' ? 0 : px(cs.maxWidth);
if (maxWidth > 0) {
- if (cs.boxSizing !== 'border-box') {
+ if (cs.boxSizing.slice(0, 6) !== 'border') {
maxWidth += px(cs.paddingLeft) + px(cs.paddingRight) +
px(cs.borderLeftWidth) + px(cs.borderRightWidth);
}
diff --git a/app/src/features/conversations/tools/mcpUi/scrollAffordance.ts b/app/src/features/conversations/tools/mcpUi/scrollAffordance.ts
index 3c921d6d1d..2cd7bd0ae9 100644
--- a/app/src/features/conversations/tools/mcpUi/scrollAffordance.ts
+++ b/app/src/features/conversations/tools/mcpUi/scrollAffordance.ts
@@ -107,9 +107,10 @@ export const SCROLL_AFFORDANCE_SOURCE = `(function () {
button.setAttribute('aria-label', label);
button.innerHTML = icon;
button.style.cssText = 'position:fixed;display:none;align-items:center;justify-content:center;' +
- 'width:' + SIZE + 'px;height:' + SIZE + 'px;padding:0;margin:0;border-radius:50%;' +
+ 'width:' + SIZE + 'px;height:' + SIZE + 'px;padding:0;margin:0;' +
'border:1px solid rgba(0,0,0,0.14);background:rgba(255,255,255,0.94);color:#1f2328;' +
'box-shadow:0 1px 4px rgba(0,0,0,0.22);cursor:pointer;font:inherit;line-height:0;';
+ button.style.borderRadius = '50%';
button.addEventListener('click', function () {
var amount = Math.max(1, Math.round(el.clientWidth * 0.8)) * direction;
if (typeof el.scrollBy === 'function') {