Skip to content

Commit c4073fb

Browse files
committed
fix(mobile): restore dark toast glass and tighten iPhone spacing
1 parent f0396ba commit c4073fb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function ToastContent(props: ToastProps & { readonly glassReady?: boolean }) {
6161
const surface = (
6262
<GlassSurface
6363
key={props.glassReady === false ? "entering" : "settled"}
64+
chrome={Platform.OS === "ios" && colorScheme === "dark" ? "none" : undefined}
6465
tintColor={Platform.OS === "ios" ? null : undefined}
6566
className={Platform.OS === "ios" ? "bg-transparent p-3" : "p-3"}
6667
style={{ borderRadius }}

‎apps/mobile/src/features/home/ThreadUndoNotice.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export function ThreadUndoNotice(props: { readonly visible: boolean }) {
3232
: { left: 20, right: 20 }
3333
: { left: 12, right: 12 };
3434
// The Duo's native tab pill extends above the 48-point toolbar reservation.
35-
const workspacePadding = useDuoBottomBarInset() === undefined ? 16 : 8;
35+
const workspacePadding =
36+
useDuoBottomBarInset() === undefined ? (deviceType === "phone" ? 32 : 16) : 8;
3637
// Replacing a notice must also cancel the native gesture tracking the old one.
3738
const [instance, setInstance] = useState({ notice, key: 0 });
3839
if (instance.notice !== notice) setInstance({ notice, key: instance.key + 1 });

0 commit comments

Comments
 (0)