Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Fix mobile command popover glass rendering (#6370)
Julius Marminge18918d1c4d09
diff --git a/apps/mobile/src/features/threads/ComposerCommandPopover.tsx b/apps/mobile/src/features/threads/ComposerCommandPopover.tsxindex ccf6a3071..17758721f 100644--- a/apps/mobile/src/features/threads/ComposerCommandPopover.tsx+++ b/apps/mobile/src/features/threads/ComposerCommandPopover.tsx@@ -1,4 +1,3 @@-import { isLiquidGlassSupported, LiquidGlassView } from "@callstack/liquid-glass";import type { ComposerTriggerKind } from "@t3tools/shared/composerTrigger";import type { ServerProviderSkill, ServerProviderSlashCommand } from "@t3tools/contracts";import { SymbolView } from "../../components/AppSymbol";@@ -6,6 +5,7 @@ import { memo } from "react";import { Pressable, ScrollView, useColorScheme, View, type ViewStyle } from "react-native";import { AppText as Text } from "../../components/AppText";+import { GlassSurface } from "../../components/GlassSurface";import { PierreEntryIcon } from "../../components/PierreEntryIcon";export type ComposerCommandItem =| {@@ -56,33 +56,14 @@ function PopoverSurface(props: {...props.style,};- if (isLiquidGlassSupported) {- return (- <LiquidGlassView- effect="clear"- interactive={false}- tintColor={props.isDarkMode ? "rgba(30,30,32,0.95)" : "rgba(255,255,255,0.92)"}- colorScheme={props.isDarkMode ? "dark" : "light"}- style={baseStyle}- >- {props.children}- </LiquidGlassView>- );- }-return (- <View- style={[- baseStyle,- {- backgroundColor: props.isDarkMode ? "rgba(44,44,46,0.96)" : "rgba(255,255,255,0.96)",- borderWidth: 1,- borderColor: props.isDarkMode ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.06)",- },- ]}+ <GlassSurface+ glassEffectStyle="clear"+ tintColor={props.isDarkMode ? "rgba(30,30,32,0.95)" : "rgba(255,255,255,0.92)"}+ style={baseStyle}>{props.children}- </View>+ </GlassSurface>);}