Polish Theme Dialog (#1356)

This commit is contained in:
Jacob Richman
2025-06-23 23:43:17 +00:00
committed by GitHub
parent 8c6545bf9d
commit f741630572
3 changed files with 144 additions and 91 deletions

View File

@@ -5,7 +5,7 @@
*/
import React from 'react';
import { Text } from 'ink';
import { Text, Box } from 'ink';
import SelectInput, {
type ItemProps as InkSelectItemProps,
type IndicatorProps as InkSelectIndicatorProps,
@@ -78,12 +78,11 @@ export function RadioButtonSelect<T>({
isSelected = false,
}: InkSelectIndicatorProps): React.JSX.Element {
return (
<Text
color={isSelected ? Colors.AccentGreen : Colors.Foreground}
wrap="truncate"
>
{isSelected ? '● ' : '○ '}
</Text>
<Box minWidth={2} flexShrink={0}>
<Text color={isSelected ? Colors.AccentGreen : Colors.Foreground}>
{isSelected ? '●' : '○'}
</Text>
</Box>
);
}