File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -251,10 +251,11 @@ function renderNode(node: NodeInstance, ctx: RenderContext): string {
251251 const inputW = inputRect . width / zoom ;
252252 const inputH = inputRect . height / zoom ;
253253 const inputValue = inputEl . value || inputEl . placeholder || '' ;
254+ const inputBorderRadius = parseFloat ( getComputedStyle ( inputEl ) . borderRadius ) || inputH / 2 ;
254255
255- // Input background
256+ // Input background (pill shape)
256257 parts . push (
257- `<rect x="${ inputX } " y="${ inputY } " width="${ inputW } " height="${ inputH } " rx="4 " fill="${ ctx . theme . surfaceRaised } " stroke="${ ctx . theme . border } " stroke-width="1"/>`
258+ `<rect x="${ inputX } " y="${ inputY } " width="${ inputW } " height="${ inputH } " rx="${ inputBorderRadius } " fill="${ ctx . theme . surfaceRaised } " stroke="${ ctx . theme . border } " stroke-width="1"/>`
258259 ) ;
259260
260261 // Input value
You can’t perform that action at this time.
0 commit comments