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
+10 -5

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',
Whitespace-only changes.
+1 -1
View File
@@ -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',