Skip to content

Commit 71d31ff

Browse files
committed
fix(mobile): match iOS toast rounding to floating controls
1 parent 6b96648 commit 71d31ff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/mobile/src/components/ui/Toast.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export function Toast(props: ToastProps) {
4545
function ToastContent(props: ToastProps & { readonly glassReady?: boolean }) {
4646
const { fontScale } = useWindowDimensions();
4747
const { colorScheme } = useControlTheme();
48+
const borderRadius = Platform.OS === "ios" ? 31 : MOBILE_SHAPE.toast;
4849
// Explicit single-line notices reserve the action's width and truncate the text.
4950
const inlineAction = props.singleLine || (!props.description && fontScale < 1.5);
5051
const message =
@@ -62,7 +63,7 @@ function ToastContent(props: ToastProps & { readonly glassReady?: boolean }) {
6263
key={props.glassReady === false ? "entering" : "settled"}
6364
tintColor={Platform.OS === "ios" ? null : undefined}
6465
className={Platform.OS === "ios" ? "bg-transparent p-3" : "p-3"}
65-
style={{ borderRadius: MOBILE_SHAPE.toast }}
66+
style={{ borderRadius }}
6667
>
6768
<View className="flex-row items-center gap-3">
6869
{props.busy ? (
@@ -102,7 +103,7 @@ function ToastContent(props: ToastProps & { readonly glassReady?: boolean }) {
102103
return Platform.OS === "ios" ? (
103104
<View
104105
style={{
105-
borderRadius: MOBILE_SHAPE.toast,
106+
borderRadius,
106107
boxShadow: [
107108
{
108109
offsetX: 0,

0 commit comments

Comments
 (0)