1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-08 23:26:32 +02:00

Support smaller screens in home page

This commit is contained in:
Phuoc Nguyen
2020-02-03 22:36:30 +07:00
parent 83971bbe79
commit b456c81391
6 changed files with 51 additions and 72 deletions

View File

@@ -18,6 +18,7 @@ const CoverCard: React.FC<CoverCardProps> = ({ pattern }) => {
return (
<Link
to={`/patterns/${slug(pattern)}`}
className='w-1/2 md:w-1/5 lg:w-1/6'
style={{
alignItems: 'center',
display: 'flex',
@@ -25,7 +26,6 @@ const CoverCard: React.FC<CoverCardProps> = ({ pattern }) => {
justifyContent: 'flex-start',
padding: '16px',
textDecoration: 'none',
width: '16.666666666666668%',
}}
>
<CoverLoader pattern={pattern} />