Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
- add backup for card styles for iphones safari
  • Loading branch information
elrouss committed Apr 12, 2024
1 parent bc886d6 commit 2fbba70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/components/blocks/gallery-users/gallery-users.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,13 @@
grid-template-columns: repeat(2, 1fr);
}
}

.galleryItem {
display: flex;
flex-direction: column;

& > * {
// for safari iphone, if mixin single-line won't work
flex-grow: 1;
}
}
2 changes: 1 addition & 1 deletion src/components/blocks/gallery-users/gallery-users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const GalleryUsers = ({ data }: IGalleryUsersProps) => {
Boolean(data.length) && (
<ul className={styles.gallery}>
{data.map((item) => (
<li key={item.id}>
<li className={styles.galleryItem} key={item.id}>
<UserCard {...item} />
</li>
))}
Expand Down

0 comments on commit 2fbba70

Please sign in to comment.