Skip to content

Commit

Permalink
improve event card, grows with text
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonIsAzn committed Feb 1, 2025
1 parent 5d1350b commit eda0b90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/screens/events/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const EventCard = ({ event, navigation }: { event: SHPEEvent, navigation: any })

return (
<TouchableOpacity
className={`h-[90px] rounded-md flex-row ${darkMode ? "bg-secondary-bg-dark" : "bg-secondary-bg-light"}`}
className={`min-h-[90px] rounded-md flex-row ${darkMode ? "bg-secondary-bg-dark" : "bg-secondary-bg-light"}`}
style={{
shadowColor: "#000",
shadowOffset: {
Expand All @@ -42,7 +42,7 @@ const EventCard = ({ event, navigation }: { event: SHPEEvent, navigation: any })
)}

<Image
className="flex h-full w-[25%] rounded-md"
className="w-[25%] rounded-md h-full"
resizeMode='cover'
defaultSource={darkMode ? Images.SHPE_WHITE : Images.SHPE_NAVY}
source={event?.coverImageURI ? { uri: event.coverImageURI } : darkMode ? Images.SHPE_WHITE : Images.SHPE_NAVY}
Expand All @@ -57,7 +57,7 @@ const EventCard = ({ event, navigation }: { event: SHPEEvent, navigation: any })
</View>

{(isAdminLead || isCoach) && (
<View className='h-full items-center justify-center mx-2'>
<View className='items-center justify-center mx-2'>
<TouchableOpacity
onPress={() => { navigation.navigate("QRCode", { event: event }) }}
className='absolute right-0'
Expand Down

0 comments on commit eda0b90

Please sign in to comment.