chore: app card ui

pull/198/head
金伟强 3 years ago
parent 7240d90bc1
commit 49a4a40863

@ -90,7 +90,7 @@ const Apps: FC = ({ }) => {
}} }}
> >
<nav <nav
className={`${s.appList} grid content-start grid-cols-1 gap-4 px-12 pb-10 md:grid-cols-2 grow shrink-0`}> className={`${s.appList} grid content-start grid-cols-1 gap-4 px-12 pb-10grow shrink-0`}>
{currList.map(app => ( {currList.map(app => (
<AppCard <AppCard
key={app.app_id} key={app.app_id}

@ -2,4 +2,16 @@
.appList { .appList {
grid-template-columns: repeat(4, minmax(0, 1fr)) grid-template-columns: repeat(4, minmax(0, 1fr))
} }
}
@media (min-width: 1300px) and (max-width: 1624px) {
.appList {
grid-template-columns: repeat(3, minmax(0, 1fr))
}
}
@media (min-width: 1025px) and (max-width: 1300px) {
.appList {
grid-template-columns: repeat(2, minmax(0, 1fr))
}
} }
Loading…
Cancel
Save