mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +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-brief: 200ms;
|
||||||
--duration-subtle: 2s;
|
--duration-subtle: 2s;
|
||||||
|
|
||||||
--tank-card-width: 11rem;
|
/* --tank-card-width: 11rem; */
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--space-4);
|
gap: var(--space-2);
|
||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-width: min-content;
|
min-width: min-content;
|
||||||
@@ -10,6 +10,8 @@
|
|||||||
.icon-wrapper {
|
.icon-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
.flag {
|
.flag {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.tank-cards {
|
.tank-cards {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--space-5) var(--space-4);
|
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;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,7 @@ function Content() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<TankCards>
|
<TankCards>
|
||||||
{tankList.list.map(({ id }) => (
|
{tankList.list.slice(0, 32).map(({ id }) => (
|
||||||
<TankCard key={id} id={id} />
|
<TankCard key={id} id={id} />
|
||||||
))}
|
))}
|
||||||
</TankCards>
|
</TankCards>
|
||||||
|
|||||||
Reference in new issue
Block a user