style(sidebar): add hover effect to New Agent button

On hover: white border and light muted background.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Mohamed Boudra
2026-01-04 10:31:12 +07:00
co-authored by Claude Opus 4.5
parent 74ed95cc08
commit 330a75a445
@@ -241,7 +241,10 @@ export function SlidingSidebar({ selectedAgentId }: SlidingSidebarProps) {
{/* Header: New Agent button */} {/* Header: New Agent button */}
<View style={styles.sidebarHeader}> <View style={styles.sidebarHeader}>
<Pressable <Pressable
style={styles.newAgentButton} style={({ hovered }) => [
styles.newAgentButton,
hovered && styles.newAgentButtonHovered,
]}
onPress={handleCreateAgentMobile} onPress={handleCreateAgentMobile}
> >
<Plus size={18} color={theme.colors.foreground} /> <Plus size={18} color={theme.colors.foreground} />
@@ -284,10 +287,13 @@ export function SlidingSidebar({ selectedAgentId }: SlidingSidebarProps) {
{/* Header: New Agent button */} {/* Header: New Agent button */}
<View style={styles.sidebarHeader}> <View style={styles.sidebarHeader}>
<Pressable <Pressable
style={styles.newAgentButton} style={({ hovered }) => [
styles.newAgentButton,
hovered && styles.newAgentButtonHovered,
]}
onPress={handleCreateAgentDesktop} onPress={handleCreateAgentDesktop}
> >
<Plus size={18} color={theme.colors.mutedForeground} /> <Plus size={18} color={theme.colors.foreground} />
<Text style={styles.newAgentButtonText}>New Agent</Text> <Text style={styles.newAgentButtonText}>New Agent</Text>
</Pressable> </Pressable>
</View> </View>
@@ -349,6 +355,10 @@ const styles = StyleSheet.create((theme) => ({
borderWidth: 1, borderWidth: 1,
borderColor: theme.colors.border, borderColor: theme.colors.border,
}, },
newAgentButtonHovered: {
borderColor: theme.colors.foreground,
backgroundColor: theme.colors.muted,
},
newAgentButtonText: { newAgentButtonText: {
fontSize: theme.fontSize.base, fontSize: theme.fontSize.base,
fontWeight: theme.fontWeight.normal, fontWeight: theme.fontWeight.normal,