diff --git a/src/ui/DropdownMenu.tsx b/src/ui/DropdownMenu.tsx index d651720..6593ff8 100644 --- a/src/ui/DropdownMenu.tsx +++ b/src/ui/DropdownMenu.tsx @@ -123,6 +123,7 @@ const DropdownMenu = React.memo(function DropdownMenu({ borderRight={false} borderTop={false} borderLeft={false} + paddingX={1} > {title} @@ -138,31 +139,33 @@ const DropdownMenu = React.memo(function DropdownMenu({ ) : null} {/* Visible items */} - {visibleItems.map((item, idx) => { - const actualIndex = visibleStart + idx; - const isActive = actualIndex === activeIndex; + + {visibleItems.map((item, idx) => { + const actualIndex = visibleStart + idx; + const isActive = actualIndex === activeIndex; - // Use custom renderer if provided - if (renderItem) { - return {renderItem(item, isActive)}; - } + // Use custom renderer if provided + if (renderItem) { + return {renderItem(item, isActive)}; + } - // Default rendering with selection indicator and optional features - return ( - - - - {isActive ? "> " : " "} - {item.selected !== undefined ? (item.selected ? "●" : "○") : null} {item.label} - {item.statusIndicator ? ( - {item.statusIndicator.symbol} - ) : null} - + // Default rendering with selection indicator and optional features + return ( + + + + {isActive ? "> " : " "} + {item.selected !== undefined ? (item.selected ? "●" : "○") : null} {item.label} + {item.statusIndicator ? ( + {item.statusIndicator.symbol} + ) : null} + + + {item.description ? {`${item.description}`} : null} - {item.description ? {`${item.description}`} : null} - - ); - })} + ); + })} + {/* Scroll indicator - bottom */} {visibleStart + visibleItems.length < items.length ? ( @@ -180,6 +183,7 @@ const DropdownMenu = React.memo(function DropdownMenu({ borderRight={false} borderTop={true} borderLeft={false} + paddingX={1} > {helpText}