This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"expo": {
|
"expo": {
|
||||||
"name": "Admin Panel",
|
"name": "Admin Panel",
|
||||||
"slug": "frontend-admin",
|
"slug": "frontend-admin",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"icon": "./assets/icon.png",
|
"icon": "./assets/icon.png",
|
||||||
"userInterfaceStyle": "dark",
|
"userInterfaceStyle": "dark",
|
||||||
|
|||||||
@@ -501,7 +501,14 @@ export default function DeliveryScreen() {
|
|||||||
borderTopLeftRadius: borderRadius.xl,
|
borderTopLeftRadius: borderRadius.xl,
|
||||||
borderTopRightRadius: borderRadius.xl,
|
borderTopRightRadius: borderRadius.xl,
|
||||||
padding: spacing.l,
|
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: {
|
ratingsHeader: {
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
@@ -1107,7 +1114,7 @@ export default function DeliveryScreen() {
|
|||||||
({ratingsModal.count} avis)
|
({ratingsModal.count} avis)
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<ScrollView showsVerticalScrollIndicator={false}>
|
<ScrollView style={{ flex: 1 }} showsVerticalScrollIndicator={false}>
|
||||||
{ratingsModal.ratings.map((r) => (
|
{ratingsModal.ratings.map((r) => (
|
||||||
<View key={r.id} style={styles.ratingItem}>
|
<View key={r.id} style={styles.ratingItem}>
|
||||||
<View style={styles.ratingItemHeader}>
|
<View style={styles.ratingItemHeader}>
|
||||||
@@ -1258,7 +1265,7 @@ export default function DeliveryScreen() {
|
|||||||
</Text>
|
</Text>
|
||||||
) : loginHistoryModal &&
|
) : loginHistoryModal &&
|
||||||
loginHistoryModal.weeks.length > 0 ? (
|
loginHistoryModal.weeks.length > 0 ? (
|
||||||
<ScrollView showsVerticalScrollIndicator={false}>
|
<ScrollView style={{ flex: 1 }} showsVerticalScrollIndicator={false}>
|
||||||
{loginHistoryModal.weeks.map((week) => (
|
{loginHistoryModal.weeks.map((week) => (
|
||||||
<View key={week.week}>
|
<View key={week.week}>
|
||||||
<Text style={styles.historyWeekLabel}>
|
<Text style={styles.historyWeekLabel}>
|
||||||
|
|||||||
Reference in New Issue
Block a user