mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
feat: grid sizing
This commit is contained in:
1 parent
2bae132d18
commit
3e039d34c2
4 files changed
+6
-4
No files matched your search
@@ -82,6 +82,6 @@ import "@fontsource-variable/roboto-flex";
|
||||
--duration-brief: 200ms;
|
||||
--duration-subtle: 2s;
|
||||
|
||||
--tank-card-width: 11rem;
|
||||
/* --tank-card-width: 11rem; */
|
||||
}
|
||||
</style>
|
||||
@@ -2,7 +2,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-4);
|
||||
gap: var(--space-2);
|
||||
|
||||
overflow: hidden;
|
||||
min-width: min-content;
|
||||
@@ -10,6 +10,8 @@
|
||||
.icon-wrapper {
|
||||
position: relative;
|
||||
|
||||
width: 100%;
|
||||
|
||||
.flag {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.tank-cards {
|
||||
display: grid;
|
||||
gap: var(--space-5) var(--space-4);
|
||||
grid-template-columns: repeat(auto-fill, var(--tank-card-width));
|
||||
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
||||
justify-content: center;
|
||||
}
|
||||
@@ -21,7 +21,7 @@ function Content() {
|
||||
|
||||
return (
|
||||
<TankCards>
|
||||
{tankList.list.map(({ id }) => (
|
||||
{tankList.list.slice(0, 32).map(({ id }) => (
|
||||
<TankCard key={id} id={id} />
|
||||
))}
|
||||
</TankCards>
|
||||
|
||||
Reference in new issue
Block a user