Tweak desktop header styles

This commit is contained in:
Eric Bailey
2024-05-16 14:26:31 -05:00
parent 4bceabc21c
commit 8ede062c27
2 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -291,8 +291,9 @@ export function Button({
} else { } else {
baseStyles.push({height: 50, width: 50}) baseStyles.push({height: 50, width: 50})
} }
} else if (size === 'medium') {
} else if (size === 'small') { } else if (size === 'small') {
baseStyles.push({height: 40, width: 40}) baseStyles.push({height: 34, width: 34})
} else if (size === 'tiny') { } else if (size === 'tiny') {
baseStyles.push({height: 20, width: 20}) baseStyles.push({height: 20, width: 20})
} }
+7 -7
View File
@@ -225,20 +225,21 @@ function DesktopHeader({
a.justify_between, a.justify_between,
a.gap_lg, a.gap_lg,
a.px_lg, a.px_lg,
a.py_sm, a.pr_md,
a.py_md,
a.border_b, a.border_b,
t.atoms.border_contrast_low, t.atoms.border_contrast_low,
]}> ]}>
<Text style={[a.text_2xl, a.font_bold]}> <Text style={[a.text_2xl, a.font_bold]}>
<Trans>Messages</Trans> <Trans>Messages</Trans>
</Text> </Text>
<View style={[a.flex_row, a.align_center, a.gap_md]}> <View style={[a.flex_row, a.align_center, a.gap_sm]}>
<Button <Button
label={_(msg`Message settings`)} label={_(msg`Message settings`)}
color="secondary" color="secondary"
size="large" size="small"
variant="ghost" variant="ghost"
style={[{height: 'auto', width: 'auto'}, a.px_sm, a.py_sm]} shape="square"
onPress={onNavigateToSettings}> onPress={onNavigateToSettings}>
<ButtonIcon icon={SettingsSlider} /> <ButtonIcon icon={SettingsSlider} />
</Button> </Button>
@@ -246,11 +247,10 @@ function DesktopHeader({
<Button <Button
label={_(msg`New chat`)} label={_(msg`New chat`)}
color="primary" color="primary"
size="large" size="small"
variant="solid" variant="solid"
style={[{height: 'auto', width: 'auto'}, a.px_md, a.py_sm]}
onPress={newChatControl.open}> onPress={newChatControl.open}>
<ButtonIcon icon={Plus} position="right" /> <ButtonIcon icon={Plus} position="left" />
<ButtonText> <ButtonText>
<Trans>New chat</Trans> <Trans>New chat</Trans>
</ButtonText> </ButtonText>