mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02: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}`,
|
||||
|
||||
[`.${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}
|
||||
list={awaitedTanks.map((tank, index) => ({
|
||||
node: (
|
||||
<a href={`/tools/tankopedia/${tank.id}`}>
|
||||
<a
|
||||
href={`/tools/tankopedia/${tank.id}`}
|
||||
style={{
|
||||
flex: 1,
|
||||
}}
|
||||
>
|
||||
<Card className={styles.listing}>
|
||||
<Inset
|
||||
key={index}
|
||||
style={{
|
||||
height: 128,
|
||||
width: 256,
|
||||
minHeight: 128,
|
||||
minWidth: 256,
|
||||
position: 'relative',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
@@ -85,8 +90,8 @@ export function List() {
|
||||
(tank.tree_type === 'collector'
|
||||
? TANK_ICONS_COLLECTOR
|
||||
: tank.tree_type === 'premium'
|
||||
? TANK_ICONS_PREMIUM
|
||||
: TANK_ICONS)[tank.type]
|
||||
? TANK_ICONS_PREMIUM
|
||||
: TANK_ICONS)[tank.type]
|
||||
}
|
||||
style={{ width: '1em', height: '1em' }}
|
||||
/>
|
||||
@@ -96,8 +101,8 @@ export function List() {
|
||||
tank.tree_type === 'collector'
|
||||
? 'blue'
|
||||
: tank.tree_type === 'premium'
|
||||
? 'amber'
|
||||
: undefined
|
||||
? 'amber'
|
||||
: undefined
|
||||
}
|
||||
weight="medium"
|
||||
style={{
|
||||
|
||||
Whitespace-only changes.
@@ -19,7 +19,7 @@ export default function PageWrapper({
|
||||
gap="4"
|
||||
style={{
|
||||
width: '100%',
|
||||
maxWidth: size === 'regular' ? 800 : 880,
|
||||
maxWidth: size === 'regular' ? 800 : 960,
|
||||
margin: 'auto',
|
||||
padding: 16,
|
||||
boxSizing: 'border-box',
|
||||
|
||||
Reference in new issue
Block a user