mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: condensed
This commit is contained in:
1 parent
65e239a22b
commit
0b88f71f26
6 files changed
+21
-19
No files matched your search
+6
-2
@@ -1,5 +1,5 @@
|
||||
import { Flex } from '@radix-ui/themes';
|
||||
import { ReactNode } from 'react';
|
||||
import * as styles from '../../../../page.css';
|
||||
|
||||
interface ConfigurationChildWrapperProps {
|
||||
children: ReactNode;
|
||||
@@ -8,5 +8,9 @@ interface ConfigurationChildWrapperProps {
|
||||
export function ConfigurationChildWrapper({
|
||||
children,
|
||||
}: ConfigurationChildWrapperProps) {
|
||||
return <div className={styles.configurationChild}>{children}</div>;
|
||||
return (
|
||||
<Flex gap="2" direction="column">
|
||||
{children}
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
+4
-2
@@ -61,8 +61,10 @@ export function Skills() {
|
||||
</Flex>
|
||||
|
||||
<Text>
|
||||
<InfoCircledIcon /> Skills in yellow only apply under special
|
||||
circumstances.
|
||||
<Text color="amber">
|
||||
<InfoCircledIcon /> Yellow
|
||||
</Text>{' '}
|
||||
skills apply under special circumstances.
|
||||
</Text>
|
||||
|
||||
<Flex direction="column" gap="2">
|
||||
|
||||
@@ -65,7 +65,7 @@ export default function Page({ params }: { params: { id: string } }) {
|
||||
}, [initialId, assigned]);
|
||||
|
||||
return (
|
||||
<PageWrapper color="purple" size="double">
|
||||
<PageWrapper color="purple" size={1600}>
|
||||
{assigned && (
|
||||
<>
|
||||
<Title />
|
||||
@@ -78,7 +78,7 @@ export default function Page({ params }: { params: { id: string } }) {
|
||||
justify="center"
|
||||
>
|
||||
<Flex
|
||||
gap="4"
|
||||
gap="8"
|
||||
direction="column"
|
||||
style={{
|
||||
flex: 1,
|
||||
@@ -90,13 +90,15 @@ export default function Page({ params }: { params: { id: string } }) {
|
||||
<TankSandbox />
|
||||
<AntagonistBar />
|
||||
|
||||
<Flex direction="column" gap="5">
|
||||
<Flex gap="5" wrap="wrap">
|
||||
<Modules />
|
||||
<Provisions />
|
||||
<Equipment />
|
||||
<Miscellaneous />
|
||||
<Consumables />
|
||||
<Skills />
|
||||
<Flex gap="5" wrap="wrap">
|
||||
<Equipment />
|
||||
<Skills />
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Flex>
|
||||
|
||||
|
||||
@@ -74,12 +74,6 @@ export const characteristics = style({
|
||||
},
|
||||
});
|
||||
|
||||
export const configurationChild = style({
|
||||
display: 'flex',
|
||||
gap: 8,
|
||||
flexDirection: 'column',
|
||||
});
|
||||
|
||||
export const configuration = style({
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function Page() {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<PageWrapper size="double" color="purple">
|
||||
<PageWrapper size={1200} color="purple">
|
||||
<TankSearch
|
||||
onSelect={(tank) => {
|
||||
router.push(`./tankopedia/${tank.id}`);
|
||||
|
||||
@@ -3,13 +3,13 @@ import { ComponentProps } from 'react';
|
||||
|
||||
interface PageWrapperProps extends ComponentProps<typeof Flex> {
|
||||
color?: ComponentProps<typeof Theme>['accentColor'];
|
||||
size?: 'regular' | 'wide' | 'double';
|
||||
size?: number;
|
||||
}
|
||||
|
||||
export default function PageWrapper({
|
||||
style,
|
||||
color,
|
||||
size = 'regular',
|
||||
size = 800,
|
||||
...props
|
||||
}: PageWrapperProps) {
|
||||
return (
|
||||
@@ -19,7 +19,7 @@ export default function PageWrapper({
|
||||
gap="4"
|
||||
style={{
|
||||
width: '100%',
|
||||
maxWidth: size === 'regular' ? 800 : size === 'double' ? 1200 : 960,
|
||||
maxWidth: size,
|
||||
margin: 'auto',
|
||||
padding: 16,
|
||||
boxSizing: 'border-box',
|
||||
|
||||
Reference in new issue
Block a user