Skip to content

Commit bdd5184

Browse files
committed
fix(mobile): improve folder notes header button styling and consistency
1 parent 3f7774c commit bdd5184

File tree

1 file changed

+10
-28
lines changed
  • apps/mobile/v1/src/screens/FolderNotes

1 file changed

+10
-28
lines changed

apps/mobile/v1/src/screens/FolderNotes/index.tsx

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ export default function FolderNotesScreen({ folderId, folderName, viewType }: Fo
307307

308308
<Text style={[styles.headerTitle, { color: theme.colors.foreground }]} numberOfLines={1} ellipsizeMode="head">{title}</Text>
309309

310-
<View style={[styles.headerActionsGroup, { backgroundColor: theme.colors.muted, borderColor: theme.colors.border }]}>
310+
<View style={styles.headerActions}>
311311
<TouchableOpacity
312-
style={styles.iconButton}
312+
style={[styles.iconButton, { backgroundColor: theme.colors.muted }]}
313313
onPress={() => breadcrumbSheetRef.current?.present()}
314314
>
315315
<Ionicons
@@ -319,10 +319,8 @@ export default function FolderNotesScreen({ folderId, folderName, viewType }: Fo
319319
/>
320320
</TouchableOpacity>
321321

322-
<View style={[styles.buttonDivider, { backgroundColor: theme.colors.border }]} />
323-
324322
<TouchableOpacity
325-
style={styles.iconButton}
323+
style={[styles.iconButton, { backgroundColor: theme.colors.muted }]}
326324
onPress={() => {
327325
if (isSearchVisible) {
328326
setIsSearchVisible(false);
@@ -342,7 +340,7 @@ export default function FolderNotesScreen({ folderId, folderName, viewType }: Fo
342340
{/* Show settings button only for regular folders (not Quick Action views) */}
343341
{!viewType && folderId && (
344342
<TouchableOpacity
345-
style={styles.iconButton}
343+
style={[styles.iconButton, { backgroundColor: theme.colors.muted }]}
346344
onPress={openFolderSettings}
347345
>
348346
<Ionicons name="settings-outline" size={20} color={theme.colors.mutedForeground} />
@@ -351,7 +349,7 @@ export default function FolderNotesScreen({ folderId, folderName, viewType }: Fo
351349

352350
{/* Avatar - navigates to settings */}
353351
<TouchableOpacity
354-
style={styles.iconButton}
352+
style={[styles.iconButton, { backgroundColor: theme.colors.muted }]}
355353
onPress={() => router.push('/settings')}
356354
>
357355
<UserRound size={20} color={theme.colors.mutedForeground} />
@@ -554,10 +552,10 @@ export default function FolderNotesScreen({ folderId, folderName, viewType }: Fo
554552
</TouchableOpacity>
555553

556554
<TouchableOpacity
557-
style={[styles.deleteButton, { backgroundColor: '#ffffff' }]}
555+
style={[styles.updateButton, { backgroundColor: theme.colors.destructive }]}
558556
onPress={handleDeleteFolder}
559557
>
560-
<Text style={[styles.deleteButtonText, { color: theme.colors.destructive }]}>
558+
<Text style={[styles.updateButtonText, { color: theme.colors.destructiveForeground }]}>
561559
Delete Folder
562560
</Text>
563561
</TouchableOpacity>
@@ -595,23 +593,17 @@ const styles = StyleSheet.create({
595593
fontSize: 16,
596594
fontWeight: '600',
597595
},
598-
headerActionsGroup: {
596+
headerActions: {
599597
flexDirection: 'row',
600598
alignItems: 'center',
601-
borderRadius: ACTION_BUTTON.BORDER_RADIUS,
602-
borderWidth: StyleSheet.hairlineWidth,
603-
overflow: 'hidden',
599+
gap: 12,
604600
},
605601
iconButton: {
606602
width: 34,
607603
height: 34,
608604
alignItems: 'center',
609605
justifyContent: 'center',
610-
paddingHorizontal: 2,
611-
},
612-
buttonDivider: {
613-
width: StyleSheet.hairlineWidth,
614-
height: 34,
606+
borderRadius: 17,
615607
},
616608
searchBar: {
617609
paddingHorizontal: 16,
@@ -715,16 +707,6 @@ const styles = StyleSheet.create({
715707
fontSize: 16,
716708
fontWeight: '600',
717709
},
718-
deleteButton: {
719-
width: '100%',
720-
padding: 14,
721-
borderRadius: 8,
722-
alignItems: 'center',
723-
},
724-
deleteButtonText: {
725-
fontSize: 16,
726-
fontWeight: '600',
727-
},
728710
iconCircle: {
729711
width: 28,
730712
height: 28,

0 commit comments

Comments
 (0)