fix change handle dialog on android (#6563)

This commit is contained in:
Samuel Newman
2024-11-20 13:26:23 +00:00
committed by GitHub
parent f1c221ed28
commit 0e4f6717ce
2 changed files with 3 additions and 6 deletions
+3 -5
View File
@@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import {StyleProp, TextStyle, View, ViewStyle} from 'react-native' import {StyleProp, TextStyle, View, ViewStyle} from 'react-native'
import {atoms as a, useTheme, web} from '#/alf' import {atoms as a, useTheme} from '#/alf'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
export function Header({ export function Header({
@@ -29,10 +29,8 @@ export function Header({
a.border_b, a.border_b,
t.atoms.border_contrast_medium, t.atoms.border_contrast_medium,
t.atoms.bg, t.atoms.bg,
web([ {borderTopLeftRadius: a.rounded_md.borderRadius},
{borderRadiusTopLeft: a.rounded_md.borderRadius}, {borderTopRightRadius: a.rounded_md.borderRadius},
{borderRadiusTopRight: a.rounded_md.borderRadius},
]),
style, style,
]}> ]}>
{renderLeft && ( {renderLeft && (
@@ -86,7 +86,6 @@ function ChangeHandleDialogInner() {
return ( return (
<Dialog.ScrollableInner <Dialog.ScrollableInner
label={_(msg`Change Handle`)} label={_(msg`Change Handle`)}
style={[a.overflow_hidden]}
header={ header={
<Dialog.Header renderLeft={cancelButton}> <Dialog.Header renderLeft={cancelButton}>
<Dialog.HeaderText> <Dialog.HeaderText>