Commit a068678a authored by KesaubeEire's avatar KesaubeEire

feat: 卡片 flex -> grid

parent c9770aed
......@@ -363,7 +363,7 @@
</dialog>
{#if List.length}
<div class="cardContainer flex flex-wrap justify-evenly gap-4 my-3" transition:fade={{ delay: 0, duration: 300 }}>
<div class="cardContainer justify-evenly gap-4 my-3" transition:fade={{ delay: 0, duration: 300 }}>
{#each List as item}
<Card
title={item.cn_name}
......@@ -402,4 +402,9 @@
max-width: 96vw;
}
}
.cardContainer {
display: grid;
grid-template-columns: repeat(auto-fill, 20rem);
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment