Skip to content

Commit

Permalink
chore(agenda): move place marker after place name in compact agenda
Browse files Browse the repository at this point in the history
  • Loading branch information
lpezzolla authored and Bri74 committed Apr 15, 2024
1 parent c786a82 commit 9106186
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion lib/ui/components/AgendaCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const AgendaCard = ({
{/* Extra children are only shown if the card is not compact */}
{!isCompact && children}

{location && (
{!isCompact && location && (
<Row gap={1} mt={1.5} align="center">
<Icon
icon={faLocationDot}
Expand All @@ -191,6 +191,23 @@ export const AgendaCard = ({
</Text>
</Row>
)}
{isCompact && location && (
<Row gap={1} mt={1.5} align="center">
<Text
variant="secondaryText"
numberOfLines={1}
ellipsizeMode="tail"
style={{ color: palettes.gray[dark ? 100 : 700] }}
>
{location}
</Text>
<Icon
icon={faLocationDot}
color={palettes.gray[dark ? 300 : 600]}
size={!isTablet ? fontSizes.xs : undefined}
/>
</Row>
)}
</Col>
</TouchableHighlight>
</Card>
Expand Down

0 comments on commit 9106186

Please sign in to comment.