mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-27 04:29:50 +01:00
feat: better sizing
This commit is contained in:
1 parent
1d1d751d43
commit
579d7570af
4 files changed
+14
-9
No files matched your search
@@ -7,7 +7,7 @@ export const listingShadow = style({
|
|||||||
boxShadow: `inset 0 -128px 128px -128px ${theme.colors.appBackground1}`,
|
boxShadow: `inset 0 -128px 128px -128px ${theme.colors.appBackground1}`,
|
||||||
|
|
||||||
[`.${listing}:hover &`]: {
|
[`.${listing}:hover &`]: {
|
||||||
boxShadow: `inset 0 0 128px -128px ${theme.colors.appBackground1}`,
|
boxShadow: `inset 0 0 0 -128px ${theme.colors.appBackground1}`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,18 @@ export function List() {
|
|||||||
input={input}
|
input={input}
|
||||||
list={awaitedTanks.map((tank, index) => ({
|
list={awaitedTanks.map((tank, index) => ({
|
||||||
node: (
|
node: (
|
||||||
<a href={`/tools/tankopedia/${tank.id}`}>
|
<a
|
||||||
|
href={`/tools/tankopedia/${tank.id}`}
|
||||||
|
style={{
|
||||||
|
flex: 1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Card className={styles.listing}>
|
<Card className={styles.listing}>
|
||||||
<Inset
|
<Inset
|
||||||
key={index}
|
key={index}
|
||||||
style={{
|
style={{
|
||||||
height: 128,
|
minHeight: 128,
|
||||||
width: 256,
|
minWidth: 256,
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
@@ -85,8 +90,8 @@ export function List() {
|
|||||||
(tank.tree_type === 'collector'
|
(tank.tree_type === 'collector'
|
||||||
? TANK_ICONS_COLLECTOR
|
? TANK_ICONS_COLLECTOR
|
||||||
: tank.tree_type === 'premium'
|
: tank.tree_type === 'premium'
|
||||||
? TANK_ICONS_PREMIUM
|
? TANK_ICONS_PREMIUM
|
||||||
: TANK_ICONS)[tank.type]
|
: TANK_ICONS)[tank.type]
|
||||||
}
|
}
|
||||||
style={{ width: '1em', height: '1em' }}
|
style={{ width: '1em', height: '1em' }}
|
||||||
/>
|
/>
|
||||||
@@ -96,8 +101,8 @@ export function List() {
|
|||||||
tank.tree_type === 'collector'
|
tank.tree_type === 'collector'
|
||||||
? 'blue'
|
? 'blue'
|
||||||
: tank.tree_type === 'premium'
|
: tank.tree_type === 'premium'
|
||||||
? 'amber'
|
? 'amber'
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
weight="medium"
|
weight="medium"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Whitespace-only changes.
@@ -19,7 +19,7 @@ export default function PageWrapper({
|
|||||||
gap="4"
|
gap="4"
|
||||||
style={{
|
style={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
maxWidth: size === 'regular' ? 800 : 880,
|
maxWidth: size === 'regular' ? 800 : 960,
|
||||||
margin: 'auto',
|
margin: 'auto',
|
||||||
padding: 16,
|
padding: 16,
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
|
|||||||
Reference in new issue
Block a user