Skip to content

Commit

Permalink
[front] fix: video metadata not wrapped correctly in EntityCard on Sa…
Browse files Browse the repository at this point in the history
…fari (#1885)

* [front] fix: explicit flex-wrap on video info in EntityCard, was wrapped on hidden column on Safari

* center and add non breaking space in CollectiveGoalWeeklyProgress to fit small screens
  • Loading branch information
amatissart authored Jan 18, 2024
1 parent 417432c commit 52f04db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/entity/EntityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ const EntityCard = ({
data-testid="video-card-info"
container
direction="column"
flexWrap="nowrap"
>
<EntityCardTitle
uid={entity.uid}
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/features/goals/CollectiveGoalWeeklyProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const CollectiveGoalWeeklyProgress = () => {
gap={1}
mb={4}
>
<Typography variant="h6">
<Typography variant="h6" textAlign="center">
<Trans
t={t}
i18nKey="collectiveGoalWeeklyProgress.weeklyCollectiveGoal"
Expand All @@ -45,7 +45,8 @@ const CollectiveGoalWeeklyProgress = () => {
}}
%
</Trans>
{` ${getWeeklyProgressionEmoji(collectiveComparisonsPercent)}`}
&nbsp;
{`${getWeeklyProgressionEmoji(collectiveComparisonsPercent)}`}
</Typography>
<Box
width="100%"
Expand Down

0 comments on commit 52f04db

Please sign in to comment.