From 55049412098f474fa0df306de103789b3a008bf9 Mon Sep 17 00:00:00 2001 From: lucaronin Date: Fri, 20 Mar 2026 21:27:51 +0100 Subject: [PATCH] fix: align type selector chip left using grid layout matching property rows The type selector was using flex justify-between, pushing the chip to the right side of the Properties panel. Switch to grid-cols-2 layout (matching PropertyRow and InfoRow) so the chip sits left-aligned in the value column. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/TypeSelector.tsx | 58 ++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/src/components/TypeSelector.tsx b/src/components/TypeSelector.tsx index d85d7109..b23bf4ba 100644 --- a/src/components/TypeSelector.tsx +++ b/src/components/TypeSelector.tsx @@ -22,17 +22,19 @@ function TypeSelectorItem({ type, typeColorKeys, typeIconKeys }: { function ReadOnlyType({ isA, customColorKey, onNavigate }: { isA?: string | null; customColorKey?: string | null; onNavigate?: (target: string) => void }) { if (!isA) return null return ( -
+
Type - {onNavigate ? ( - - ) : ( - {isA} - )} +
+ {onNavigate ? ( + + ) : ( + {isA} + )} +
) } @@ -55,23 +57,24 @@ export function TypeSelector({ isA, customColorKey, availableTypes, typeColorKey const typeLightColor = isA ? getTypeLightColor(isA, typeColorKeys[isA] ?? customColorKey) : undefined return ( -
+
Type - onUpdateProperty('type', v === TYPE_NONE ? null : v)}> + + + None @@ -81,7 +84,8 @@ export function TypeSelector({ isA, customColorKey, availableTypes, typeColorKey ))} - + +
) }