From 693c6e8277c55006a8984f5858cc036b68172040 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Sat, 28 Mar 2026 21:26:57 +0100 Subject: [PATCH] scaffolder: refine schema table cell styling Style the name column with monospace text and widen it slightly. Add a neutral background badge style to type labels in the value column. Signed-off-by: Patrik Oldsberg Made-with: Cursor --- .../components/RenderSchema/RenderSchema.tsx | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/plugins/scaffolder/src/components/RenderSchema/RenderSchema.tsx b/plugins/scaffolder/src/components/RenderSchema/RenderSchema.tsx index 45a195e0d3..64be2dc71f 100644 --- a/plugins/scaffolder/src/components/RenderSchema/RenderSchema.tsx +++ b/plugins/scaffolder/src/components/RenderSchema/RenderSchema.tsx @@ -241,6 +241,7 @@ export const RenderSchema = ({ { id: 'value', label: t('renderSchema.tableCell.value'), + isRowHeader: true, defaultWidth: '3fr' as any, cell: item => , }, @@ -250,10 +251,20 @@ export const RenderSchema = ({ id: 'name', label: t('renderSchema.tableCell.name'), isRowHeader: true, - defaultWidth: 200, + defaultWidth: 220, cell: item => { const name = item.propKey ?? ''; - return ; + return ( + + + {item.required ? `${name} *` : name} + + + ); }, }, { @@ -428,7 +439,13 @@ function ValueCell({ key={type} as="span" variant="body-small" - style={{ fontFamily: 'monospace' }} + color="secondary" + style={{ + fontFamily: 'monospace', + background: 'var(--bui-bg-neutral-2)', + padding: '1px 6px', + borderRadius: 4, + }} > {type}