feat: better sizing

This commit is contained in:
TrèsAbhi committed 2023-12-03 18:26:48 -06:00
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.
+1 -1
View File
@@ -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',