use consistent styling in the composer

This commit is contained in:
Eric Bailey
2023-10-09 15:11:43 -05:00
parent c3ec1e6613
commit 3637676778
3 changed files with 17 additions and 20 deletions
+12 -11
View File
@@ -89,16 +89,16 @@ export function EditableTag({
onPointerEnter={hoverIn} onPointerEnter={hoverIn}
onPointerLeave={hoverOut} onPointerLeave={hoverOut}
style={state => [ style={state => [
pal.border, pal.viewLight,
styles.tag, styles.tag,
{ {
opacity: hovered || state.pressed || state.focused ? 0.8 : 1, opacity: state.pressed || state.focused ? 0.8 : 1,
outline: 0, outline: 0,
paddingRight: 6, paddingRight: 6,
}, },
]}> ]}>
<Text <Text
type="xs-medium" type="sm-medium"
style={[pal.textLight, {lineHeight: 13, paddingBottom: 2}]}> style={[pal.textLight, {lineHeight: 13, paddingBottom: 2}]}>
#{value} #{value}
</Text> </Text>
@@ -106,10 +106,12 @@ export function EditableTag({
icon="x" icon="x"
style={ style={
{ {
color: hovered ? pal.textLight.color : pal.border.borderColor, opacity: hovered ? 1 : 0.5,
color: pal.textLight.color,
marginTop: -1,
} as FontAwesomeIconStyle } as FontAwesomeIconStyle
} }
size={8} size={11}
/> />
</Pressable> </Pressable>
) )
@@ -119,12 +121,11 @@ const styles = StyleSheet.create({
tag: { tag: {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
gap: 4, gap: 6,
paddingTop: 1, paddingTop: 4,
paddingBottom: 2, paddingBottom: 3,
paddingHorizontal: 6, paddingHorizontal: 8,
borderRadius: 20, borderRadius: 4,
overflow: 'hidden', overflow: 'hidden',
borderWidth: 1,
}, },
}) })
+4 -8
View File
@@ -140,13 +140,9 @@ const styles = StyleSheet.create({
input: { input: {
flexGrow: 1, flexGrow: 1,
minWidth: 100, minWidth: 100,
fontSize: 13, fontSize: 14,
paddingVertical: 4, lineHeight: 14,
}, paddingTop: 4,
tag: { paddingBottom: 6,
paddingVertical: 4,
paddingHorizontal: 8,
borderRadius: 4,
overflow: 'hidden',
}, },
}) })
+1 -1
View File
@@ -155,7 +155,7 @@
.ProseMirror .mention { .ProseMirror .mention {
border-radius: 4px; border-radius: 4px;
background-color: var(--backgroundLight); background-color: var(--backgroundLight);
padding: 0 2px 1px; padding: 0 3px 2px;
/* This approach works, but we can't do rounded corners /* This approach works, but we can't do rounded corners
background-color: var(--backgroundLight); background-color: var(--backgroundLight);