This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"expo": {
|
||||
"name": "Admin Panel",
|
||||
"slug": "frontend-admin",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"orientation": "portrait",
|
||||
"icon": "./assets/icon.png",
|
||||
"userInterfaceStyle": "dark",
|
||||
|
||||
@@ -501,7 +501,14 @@ export default function DeliveryScreen() {
|
||||
borderTopLeftRadius: borderRadius.xl,
|
||||
borderTopRightRadius: borderRadius.xl,
|
||||
padding: spacing.l,
|
||||
maxHeight: "80%",
|
||||
// maxHeight en pourcentage ne se résout pas de façon fiable
|
||||
// ici : le parent direct est un Pressable sans style (donc
|
||||
// sans hauteur définie), et un pourcentage a besoin d'un
|
||||
// ancêtre à hauteur définie pour se calculer. Une valeur
|
||||
// en pixels dérivée de screenHeight fonctionne toujours.
|
||||
maxHeight: screenHeight * 0.8,
|
||||
flexShrink: 1,
|
||||
overflow: "hidden",
|
||||
},
|
||||
ratingsHeader: {
|
||||
flexDirection: "row",
|
||||
@@ -1107,7 +1114,7 @@ export default function DeliveryScreen() {
|
||||
({ratingsModal.count} avis)
|
||||
</Text>
|
||||
</View>
|
||||
<ScrollView showsVerticalScrollIndicator={false}>
|
||||
<ScrollView style={{ flex: 1 }} showsVerticalScrollIndicator={false}>
|
||||
{ratingsModal.ratings.map((r) => (
|
||||
<View key={r.id} style={styles.ratingItem}>
|
||||
<View style={styles.ratingItemHeader}>
|
||||
@@ -1258,7 +1265,7 @@ export default function DeliveryScreen() {
|
||||
</Text>
|
||||
) : loginHistoryModal &&
|
||||
loginHistoryModal.weeks.length > 0 ? (
|
||||
<ScrollView showsVerticalScrollIndicator={false}>
|
||||
<ScrollView style={{ flex: 1 }} showsVerticalScrollIndicator={false}>
|
||||
{loginHistoryModal.weeks.map((week) => (
|
||||
<View key={week.week}>
|
||||
<Text style={styles.historyWeekLabel}>
|
||||
|
||||
Reference in New Issue
Block a user