From 2016168317f19c3ede82545f617a7f1f825173d9 Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sat, 07 Mar 2026 13:32:48 +0100
Subject: [PATCH] fix: New Session button style — static style instead of function for reliability
---
components/SessionDrawer.tsx | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/components/SessionDrawer.tsx b/components/SessionDrawer.tsx
index 6195fbe..8019e74 100644
--- a/components/SessionDrawer.tsx
+++ b/components/SessionDrawer.tsx
@@ -519,21 +519,21 @@
/>
)}
- {/* New session FAB */}
+ {/* New session button */}
<View style={{ alignItems: "center", paddingVertical: 12 }}>
<Pressable
onPress={handleNewSession}
- style={({ pressed }) => ({
+ style={{
flexDirection: "row",
alignItems: "center",
- gap: 8,
+ gap: 6,
paddingHorizontal: 20,
- paddingVertical: 12,
+ paddingVertical: 10,
borderRadius: 24,
- backgroundColor: pressed ? colors.accent + "CC" : colors.accent,
- })}
+ backgroundColor: colors.accent,
+ }}
>
- <Text style={{ color: "#FFF", fontSize: 20, fontWeight: "600", marginTop: -1 }}>+</Text>
+ <Text style={{ color: "#FFF", fontSize: 18, fontWeight: "700" }}>+</Text>
<Text style={{ color: "#FFF", fontSize: 15, fontWeight: "600" }}>New Session</Text>
</Pressable>
</View>
--
Gitblit v1.3.1