fix: scale rendered SVGs to the display area's full width
Figures now always fill the card's width (h-auto keeps the aspect ratio): narrower svgs scale up instead of leaving a white strip on the right when they carry their own background color; oversized ones still shrink to fit. bg-white stays as a neutral backing for svgs without their own background.
This commit is contained in:
@@ -338,6 +338,7 @@ describe("steer card rendering (the delivered artifact)", () => {
|
||||
const html = renderToStaticMarkup(<SubagentSteerCard message={steer as never} />);
|
||||
assert.ok(html.includes("circle"), "svg content rendered inline");
|
||||
assert.match(html, /Figure/);
|
||||
assert.match(html, /svg\]:w-full/, "svg scales to the display area's full width");
|
||||
assert.ok(!html.includes("Looking at the render"), "model-facing notes never render");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user