Update files

This commit is contained in:
Mohamed Boudra
2026-01-24 23:06:00 +07:00
parent 504fb83fa9
commit ef612abfc1
4 changed files with 9 additions and 5 deletions
@@ -30,7 +30,7 @@ export function MenuHeader({ title, subtitle, rightContent }: MenuHeaderProps) {
left={ left={
<> <>
<Pressable onPress={toggleAgentList} style={styles.menuButton}> <Pressable onPress={toggleAgentList} style={styles.menuButton}>
<MenuIcon size={16} color={menuIconColor} /> <MenuIcon size={isMobile ? 20 : 16} color={menuIconColor} />
</Pressable> </Pressable>
{title && ( {title && (
<View style={styles.titleContainer}> <View style={styles.titleContainer}>
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
import { View, type StyleProp, type ViewStyle } from "react-native"; import { View, type StyleProp, type ViewStyle } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context"; import { useSafeAreaInsets } from "react-native-safe-area-context";
import { StyleSheet, UnistylesRuntime } from "react-native-unistyles"; import { StyleSheet, UnistylesRuntime } from "react-native-unistyles";
import { HEADER_INNER_HEIGHT } from "@/constants/layout"; import { HEADER_INNER_HEIGHT, HEADER_INNER_HEIGHT_MOBILE } from "@/constants/layout";
import { useTauriDragHandlers } from "@/utils/tauri-window"; import { useTauriDragHandlers } from "@/utils/tauri-window";
interface ScreenHeaderProps { interface ScreenHeaderProps {
@@ -44,7 +44,10 @@ const styles = StyleSheet.create((theme) => ({
}, },
inner: {}, inner: {},
row: { row: {
height: HEADER_INNER_HEIGHT, height: {
xs: HEADER_INNER_HEIGHT_MOBILE,
md: HEADER_INNER_HEIGHT,
},
flexDirection: "row", flexDirection: "row",
alignItems: "center", alignItems: "center",
justifyContent: "space-between", justifyContent: "space-between",
+1
View File
@@ -6,6 +6,7 @@ export const FOOTER_HEIGHT = 75;
// Used by both agent header (ScreenHeader) and explorer sidebar header // Used by both agent header (ScreenHeader) and explorer sidebar header
// This ensures both headers have the same visual height // This ensures both headers have the same visual height
export const HEADER_INNER_HEIGHT = 48; export const HEADER_INNER_HEIGHT = 48;
export const HEADER_INNER_HEIGHT_MOBILE = 56;
// Max width for chat content (stream view, input area, new agent form) // Max width for chat content (stream view, input area, new agent form)
export const MAX_CONTENT_WIDTH = 820; export const MAX_CONTENT_WIDTH = 820;
@@ -625,7 +625,7 @@ function AgentScreenContent({
<Pressable onPress={toggleFileExplorer} style={styles.menuButton}> <Pressable onPress={toggleFileExplorer} style={styles.menuButton}>
{isMobile ? ( {isMobile ? (
<Folder <Folder
size={16} size={20}
color={ color={
isExplorerOpen isExplorerOpen
? theme.colors.foreground ? theme.colors.foreground
@@ -651,7 +651,7 @@ function AgentScreenContent({
}} }}
> >
<DropdownMenuTrigger testID="agent-overflow-menu" style={styles.menuButton}> <DropdownMenuTrigger testID="agent-overflow-menu" style={styles.menuButton}>
<MoreVertical size={16} color={theme.colors.foregroundMuted} /> <MoreVertical size={isMobile ? 20 : 16} color={theme.colors.foregroundMuted} />
</DropdownMenuTrigger> </DropdownMenuTrigger>
<DropdownMenuContent align="end" width={DROPDOWN_WIDTH} testID="agent-overflow-content"> <DropdownMenuContent align="end" width={DROPDOWN_WIDTH} testID="agent-overflow-content">
<View style={styles.menuMetaContainer}> <View style={styles.menuMetaContainer}>