Bugfix: CLI selected item spacing (#259)
This commit is contained in:
parent
5292b08028
commit
b652da4b67
2 changed files with 6 additions and 1 deletions
5
.changeset/cold-kiwis-arrive.md
Normal file
5
.changeset/cold-kiwis-arrive.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'create-astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Bugfix: select component missing space
|
|
@ -9,7 +9,7 @@ interface Props {
|
||||||
label: string;
|
label: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
}
|
}
|
||||||
const Indicator: FC<Props> = ({ isSelected }) => (isSelected ? <Text color="#3894FF">[ </Text> : <Text> </Text>);
|
const Indicator: FC<Props> = ({ isSelected }) => (isSelected ? <Text color="#3894FF">[ </Text> : <Text>{' '}</Text>);
|
||||||
const Item: FC<Props> = ({ isSelected = false, label, description }) => (
|
const Item: FC<Props> = ({ isSelected = false, label, description }) => (
|
||||||
<Box display="flex">
|
<Box display="flex">
|
||||||
<Text color={isSelected ? '#3894FF' : 'white'} dimColor={!isSelected}>
|
<Text color={isSelected ? '#3894FF' : 'white'} dimColor={!isSelected}>
|
||||||
|
|
Loading…
Reference in a new issue