Fix agent menu spacing

This commit is contained in:
Mohamed Boudra
2025-12-23 23:24:13 +07:00
parent 8a06b378d8
commit 09f130408b
@@ -684,19 +684,19 @@ function AgentScreenContent({ serverId, agentId, onBack }: AgentScreenContentPro
<View style={styles.menuDivider} /> <View style={styles.menuDivider} />
<Pressable onPress={handleViewChanges} style={styles.menuItem}> <Pressable onPress={handleViewChanges} style={styles.menuItem}>
<GitBranch size={20} color={theme.colors.foreground} /> <GitBranch size={16} color={theme.colors.foreground} />
<Text style={styles.menuItemText}>View Changes</Text> <Text style={styles.menuItemText}>View Changes</Text>
</Pressable> </Pressable>
<Pressable onPress={handleBrowseFiles} style={styles.menuItem}> <Pressable onPress={handleBrowseFiles} style={styles.menuItem}>
<Folder size={20} color={theme.colors.foreground} /> <Folder size={16} color={theme.colors.foreground} />
<Text style={styles.menuItemText}>Browse Files</Text> <Text style={styles.menuItemText}>Browse Files</Text>
</Pressable> </Pressable>
<Pressable onPress={handleImportAgent} style={styles.menuItem}> <Pressable onPress={handleImportAgent} style={styles.menuItem}>
<Download size={20} color={theme.colors.foreground} /> <Download size={16} color={theme.colors.foreground} />
<Text style={styles.menuItemText}>Import Agent</Text> <Text style={styles.menuItemText}>Import Agent</Text>
</Pressable> </Pressable>
<Pressable onPress={handleCreateNewAgent} style={styles.menuItem}> <Pressable onPress={handleCreateNewAgent} style={styles.menuItem}>
<PlusCircle size={20} color={theme.colors.foreground} /> <PlusCircle size={16} color={theme.colors.foreground} />
<Text style={styles.menuItemText}>New Agent</Text> <Text style={styles.menuItemText}>New Agent</Text>
</Pressable> </Pressable>
<Pressable <Pressable
@@ -707,7 +707,7 @@ function AgentScreenContent({ serverId, agentId, onBack }: AgentScreenContentPro
]} ]}
disabled={isInitializing} disabled={isInitializing}
> >
<RotateCcw size={20} color={theme.colors.foreground} /> <RotateCcw size={16} color={theme.colors.foreground} />
<Text style={styles.menuItemText}> <Text style={styles.menuItemText}>
{isInitializing ? "Refreshing..." : "Refresh"} {isInitializing ? "Refreshing..." : "Refresh"}
</Text> </Text>
@@ -929,14 +929,14 @@ const styles = StyleSheet.create((theme) => ({
fontWeight: theme.fontWeight.normal, fontWeight: theme.fontWeight.normal,
}, },
menuSubAgentsSection: { menuSubAgentsSection: {
gap: theme.spacing[1], gap: theme.spacing[2],
}, },
menuSubAgentsHeader: { menuSubAgentsHeader: {
flexDirection: "row", flexDirection: "row",
alignItems: "center", alignItems: "center",
gap: theme.spacing[2], gap: theme.spacing[2],
paddingHorizontal: theme.spacing[1], paddingHorizontal: theme.spacing[3],
paddingBottom: theme.spacing[1], paddingVertical: theme.spacing[2],
}, },
menuSubAgentsLabel: { menuSubAgentsLabel: {
fontSize: theme.fontSize.xs, fontSize: theme.fontSize.xs,
@@ -945,13 +945,13 @@ const styles = StyleSheet.create((theme) => ({
textTransform: "uppercase", textTransform: "uppercase",
}, },
menuSubAgentsEmpty: { menuSubAgentsEmpty: {
fontSize: theme.fontSize.sm, fontSize: theme.fontSize.base,
color: theme.colors.mutedForeground, color: theme.colors.mutedForeground,
paddingHorizontal: theme.spacing[3], paddingHorizontal: theme.spacing[3],
paddingVertical: theme.spacing[2], paddingVertical: theme.spacing[3],
}, },
menuSubAgentsList: { menuSubAgentsList: {
maxHeight: (theme.spacing[2] * 2 + theme.fontSize.sm) * 3, maxHeight: (theme.spacing[2] * 2 + theme.fontSize.base) * 3,
}, },
menuSubAgentsListContent: { menuSubAgentsListContent: {
gap: theme.spacing[1], gap: theme.spacing[1],
@@ -960,12 +960,12 @@ const styles = StyleSheet.create((theme) => ({
flexDirection: "row", flexDirection: "row",
alignItems: "center", alignItems: "center",
justifyContent: "space-between", justifyContent: "space-between",
paddingVertical: theme.spacing[2], paddingVertical: theme.spacing[3],
paddingHorizontal: theme.spacing[3], paddingHorizontal: theme.spacing[3],
borderRadius: theme.borderRadius.md, borderRadius: theme.borderRadius.md,
}, },
menuSubAgentText: { menuSubAgentText: {
fontSize: theme.fontSize.sm, fontSize: theme.fontSize.base,
color: theme.colors.foreground, color: theme.colors.foreground,
flex: 1, flex: 1,
marginRight: theme.spacing[2], marginRight: theme.spacing[2],