mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-09 08:27:00 -07:00
Merge branch 'main' into fix/select-state-refinement
This commit is contained in:
@@ -35,6 +35,7 @@ export interface BaseSelectionListProps<
|
||||
priority?: boolean;
|
||||
/** Horizontal padding for items when not selected. Defaults to 2. */
|
||||
horizontalPadding?: number;
|
||||
selectedIndicator?: string;
|
||||
renderItem: (item: TItem, context: RenderItemContext) => React.ReactNode;
|
||||
}
|
||||
|
||||
@@ -68,6 +69,7 @@ export function BaseSelectionList<
|
||||
focusKey,
|
||||
priority,
|
||||
horizontalPadding = 1,
|
||||
selectedIndicator = '●',
|
||||
renderItem,
|
||||
}: BaseSelectionListProps<T, TItem>): React.JSX.Element {
|
||||
const { activeIndex } = useSelectionList({
|
||||
@@ -155,7 +157,7 @@ export function BaseSelectionList<
|
||||
color={isSelected ? theme.ui.focus : theme.text.primary}
|
||||
aria-hidden
|
||||
>
|
||||
{isSelected ? '●' : ' '}
|
||||
{isSelected ? selectedIndicator : ' '}
|
||||
</Text>
|
||||
</Box>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user