mirror of https://github.com/tooot-app/app
parent
6dcf0f0d7d
commit
28028c8aab
|
@ -87,17 +87,13 @@ const TimelineHeaderDefault = ({ queryKey, status, highlighted }: Props) => {
|
|||
justifyContent: 'center',
|
||||
marginBottom: StyleConstants.Spacing.L
|
||||
}}
|
||||
hitSlop={StyleConstants.Font.Size.M}
|
||||
>
|
||||
<ContextMenu
|
||||
dropdownMenuMode
|
||||
actions={actions}
|
||||
onPress={({ nativeEvent: { index } }) => {
|
||||
for (const on of [
|
||||
shareOnPress,
|
||||
statusOnPress,
|
||||
accountOnPress,
|
||||
instanceOnPress
|
||||
]) {
|
||||
for (const on of [shareOnPress, statusOnPress, accountOnPress, instanceOnPress]) {
|
||||
on && on(index)
|
||||
}
|
||||
}}
|
||||
|
@ -108,7 +104,7 @@ const TimelineHeaderDefault = ({ queryKey, status, highlighted }: Props) => {
|
|||
size={StyleConstants.Font.Size.L}
|
||||
/>
|
||||
}
|
||||
style={{ width: '100%', height: '100%' }}
|
||||
style={{ width: '100%', height: '100%', paddingHorizontal: StyleConstants.Font.Size.M }}
|
||||
/>
|
||||
</Pressable>
|
||||
) : null}
|
||||
|
|
|
@ -57,6 +57,7 @@ const TimelineHeaderDefault = ({ queryKey, status, highlighted }: Props) => {
|
|||
justifyContent: 'center',
|
||||
marginBottom: StyleConstants.Spacing.L
|
||||
}}
|
||||
hitSlop={StyleConstants.Font.Size.M}
|
||||
>
|
||||
<ContextMenu
|
||||
dropdownMenuMode
|
||||
|
@ -69,6 +70,7 @@ const TimelineHeaderDefault = ({ queryKey, status, highlighted }: Props) => {
|
|||
size={StyleConstants.Font.Size.L}
|
||||
/>
|
||||
}
|
||||
style={{ paddingHorizontal: StyleConstants.Font.Size.M }}
|
||||
/>
|
||||
</Pressable>
|
||||
) : null}
|
||||
|
|
Loading…
Reference in New Issue