Skip to content

Commit

Permalink
Fix PostCardSkeleton widths, mobile menu transforms for compatibility…
Browse files Browse the repository at this point in the history
… with smallest screens
  • Loading branch information
SSTPIERRE2 committed Apr 2, 2024
1 parent f6cc81f commit 283de5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/web/components/MobileMenu/MobileMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ const MobileMenu = () => {
style={{
transform:
isMobileMenuOpen ? 'translateX(0%)' : (
'translateX(-100%)'
'translateX(-125%)'
),
transition: 'transform 300ms',
transition: 'transform 350ms',
transitionDelay:
isMobileMenuOpen ? `${index * 100}ms` : '0ms',
}}
Expand Down
6 changes: 3 additions & 3 deletions packages/web/components/PostCardSkeleton/PostCardSkeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const PostCardSkeleton = () => {
return (
<section className={styles.wrapper}>
<h2>
<Skeleton height={50} width={300} />
<Skeleton height={50} width="85%" />
</h2>

{/* Publish date */}
Expand All @@ -15,12 +15,12 @@ const PostCardSkeleton = () => {

{/* Tag list */}
<div>
<Skeleton height={20} width={250} />
<Skeleton height={20} width="60%" />
</div>

{/* Abstract */}
<p>
<Skeleton height={100} width={400} />
<Skeleton height={100} />
</p>

{/* Read more */}
Expand Down

0 comments on commit 283de5a

Please sign in to comment.