diff --git a/apps/mobile/src/components/ui/GlassSurface.tsx b/apps/mobile/src/components/ui/GlassSurface.tsx index 8af080fc19cc..100c4112495c 100644 --- a/apps/mobile/src/components/ui/GlassSurface.tsx +++ b/apps/mobile/src/components/ui/GlassSurface.tsx @@ -25,7 +25,6 @@ interface GlassSurfaceProps extends ViewProps { readonly ref?: Ref; readonly children: ReactNode; readonly glassEffectStyle?: "clear" | "regular" | "none"; - // null leaves UIKit's material untinted instead of applying the theme tint. readonly tintColor?: ColorValue | null; readonly tintColorClassName?: string; readonly chrome?: "default" | "none"; @@ -49,7 +48,7 @@ export function GlassSurface({ const { themeAppearance } = useAppearancePreferences(); const isDarkMode = themeAppearance === "dark"; const supportsGlass = Platform.OS === "ios" && isGlassEffectAPIAvailable(); - const hasShadow = chrome !== "none" && Platform.OS !== "android"; + const hasShadow = !supportsGlass && chrome !== "none" && Platform.OS !== "android"; const surfaceStyle: ViewStyle = { borderRadius: MOBILE_SHAPE.glass, overflow: "hidden", @@ -65,17 +64,10 @@ export function GlassSurface({ diff --git a/apps/mobile/src/features/keyboard/CommandPalette.tsx b/apps/mobile/src/features/keyboard/CommandPalette.tsx index 7e7fea4527b8..8cd46807671b 100644 --- a/apps/mobile/src/features/keyboard/CommandPalette.tsx +++ b/apps/mobile/src/features/keyboard/CommandPalette.tsx @@ -580,8 +580,7 @@ export function CommandPalette(props: { /> - {props.children} - - ); + return {props.children}; } const SKILL_SOURCE_SYMBOL_BY_KIND: Record = {