feat: center align text when no image

This commit is contained in:
TrèsAbhi committed 2024-01-19 20:47:46 -06:00
1 parent 4c746cbb86
commit ae07b8de4c
3 files changed
+18 -5

No files matched your search

-1
View File
@@ -18,7 +18,6 @@ export const TANK_TYPES = [
'heavy',
] as const;
// TODO: remove hyphen for underscore
export const TREE_TYPES = ['researchable', 'premium', 'collector'] as const;
export type TankType = (typeof TANK_TYPES)[number];
+17 -3
View File
@@ -36,6 +36,8 @@ export default function TitleBar({ name, image, description }: TitleBarProps) {
style={{
display: 'flex',
gap: 4,
alignItems: 'center',
justifyContent: 'center',
}}
>
<span
@@ -51,9 +53,21 @@ export default function TitleBar({ name, image, description }: TitleBarProps) {
</span>
</div>
<span style={{ color: theme.colors.textLowContrast, fontSize: 16 }}>
{description}
</span>
<div
style={{
display: 'flex',
justifyContent: image ? 'flex-start' : 'center',
}}
>
<span
style={{
color: theme.colors.textLowContrast,
fontSize: 16,
}}
>
{description}
</span>
</div>
</div>
</div>
</div>
+1 -1
View File
@@ -50,7 +50,7 @@ export default async function resolvePlayerFromCommand(
} else {
throw new UserError(
"You're account isn't linked with Blitzkrieg yet",
'Use the `/link` command to get started.', // TODO: add shortcut button too
'Use the `/link` command to get started.',
);
}
}