Skip to content

Commit 7043f5a

Browse files
agbaumclaude
andcommitted
Move refresh indicator inline with menu button, reduce top whitespace
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8344406 commit 7043f5a

1 file changed

Lines changed: 8 additions & 17 deletions

File tree

src/app/(tabs)/index.tsx

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Animated,
66
FlatList,
77
Pressable,
8-
RefreshControl,
8+
99
StyleSheet,
1010
Text,
1111
View,
@@ -86,8 +86,7 @@ export default function TodayScreen() {
8686
];
8787

8888
const ListHeader = (
89-
<View style={[styles.header, { paddingTop: topPad + 16 }]}>
90-
<RefreshingBar visible={isRefreshing} />
89+
<View style={[styles.header, { paddingTop: topPad + 8 }]}>
9190
<Pressable
9291
onPress={() => {
9392
Haptics.selectionAsync();
@@ -98,6 +97,7 @@ export default function TodayScreen() {
9897
>
9998
<Feather name="menu" size={20} color={Colors.light.text} />
10099
</Pressable>
100+
<RefreshingBar visible={isRefreshing} />
101101
</View>
102102
);
103103

@@ -125,15 +125,7 @@ export default function TodayScreen() {
125125
showsVerticalScrollIndicator={false}
126126
scrollEnabled={true}
127127
overScrollMode="always"
128-
refreshControl={
129-
<RefreshControl
130-
refreshing={isRefreshing}
131-
onRefresh={refreshFeeds}
132-
tintColor={Colors.light.accent}
133-
colors={[Colors.light.accent]}
134-
progressBackgroundColor={Colors.light.surface}
135-
/>
136-
}
128+
137129
contentContainerStyle={styles.list}
138130
/>
139131

@@ -166,8 +158,10 @@ const styles = StyleSheet.create({
166158
},
167159
header: {
168160
paddingHorizontal: 20,
169-
paddingBottom: 12,
170-
gap: 16,
161+
paddingBottom: 8,
162+
flexDirection: "row",
163+
alignItems: "center",
164+
gap: 12,
171165
},
172166
refreshBar: {
173167
flexDirection: "row",
@@ -177,8 +171,6 @@ const styles = StyleSheet.create({
177171
paddingHorizontal: 12,
178172
backgroundColor: Colors.light.accentLight,
179173
borderRadius: 20,
180-
alignSelf: "flex-start",
181-
marginBottom: 4,
182174
},
183175
refreshBarText: {
184176
fontSize: 12,
@@ -192,7 +184,6 @@ const styles = StyleSheet.create({
192184
backgroundColor: Colors.light.surfaceAlt,
193185
alignItems: "center",
194186
justifyContent: "center",
195-
marginTop: 4,
196187
},
197188
empty: {
198189
flex: 1,

0 commit comments

Comments
 (0)