Only show padding when theme selector is visible in dropdown

This commit is contained in:
Jackson Harper 2023-03-01 20:07:05 +08:00
parent 93a96003be
commit b61e627740

View file

@ -81,9 +81,11 @@ export function PrimaryDropdown(props: PrimaryDropdownProps): JSX.Element {
)
}
>
<VStack css={{ py: '12px', px: '24px' }}>
{props.showThemeSection && <ThemeSection />}
</VStack>
{props.showThemeSection && (
<VStack css={{ py: '12px', px: '24px' }}>
<ThemeSection />
</VStack>
)}
<DropdownOption
onSelect={() => headerDropdownActionHandler('navigate-to-install')}
title="Install"