Skip to content

Commit 6134a3e

Browse files
committed
Enhance GameResultsScreen with interactive drag handle
- Replaced static drag handle with a Pressable component to toggle details. - Added touch area styling for improved user interaction.est
1 parent 89c7924 commit 6134a3e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

mobile/app/game/results.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,10 @@ export default function GameResultsScreen() {
583583
colors={['rgba(20, 65, 25, 0.97)', 'rgba(20, 65, 25, 0.90)']}
584584
style={styles.portraitPanelGradient}
585585
>
586-
{/* Drag handle */}
587-
<View style={styles.handleBar} />
586+
{/* Drag handle — tap to toggle details */}
587+
<Pressable onPress={toggleDetails} style={styles.handleBarTouchArea}>
588+
<View style={styles.handleBar} />
589+
</Pressable>
588590

589591
{renderHeader(detailsExpanded)}
590592

@@ -652,14 +654,16 @@ const styles = StyleSheet.create({
652654
borderTopLeftRadius: 16,
653655
borderTopRightRadius: 16,
654656
},
657+
handleBarTouchArea: {
658+
alignSelf: 'stretch',
659+
alignItems: 'center',
660+
paddingVertical: 8,
661+
},
655662
handleBar: {
656663
width: 40,
657664
height: 4,
658665
backgroundColor: 'rgba(255, 255, 255, 0.3)',
659666
borderRadius: 2,
660-
alignSelf: 'center',
661-
marginTop: 10,
662-
marginBottom: 4,
663667
},
664668

665669
// ── Header section (stars, score, buttons) ─────────────────

0 commit comments

Comments
 (0)