mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Cleans up some tgui styling (#11416)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f7bbeb6239
commit
25a8a1f773
@@ -6,8 +6,8 @@ import {
|
|||||||
Knob,
|
Knob,
|
||||||
LabeledControls,
|
LabeledControls,
|
||||||
LabeledList,
|
LabeledList,
|
||||||
Section,
|
|
||||||
RoundGauge,
|
RoundGauge,
|
||||||
|
Section,
|
||||||
Slider,
|
Slider,
|
||||||
} from 'tgui-core/components';
|
} from 'tgui-core/components';
|
||||||
import { toFixed } from 'tgui-core/math';
|
import { toFixed } from 'tgui-core/math';
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
Stack,
|
Stack,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
} from 'tgui-core/components';
|
} from 'tgui-core/components';
|
||||||
import { BooleanLike } from 'tgui-core/react';
|
import type { BooleanLike } from 'tgui-core/react';
|
||||||
|
|
||||||
type Data = {
|
type Data = {
|
||||||
stun_time: number;
|
stun_time: number;
|
||||||
@@ -43,7 +43,10 @@ export const ShadekinConfig = (props) => {
|
|||||||
const isSubtle =
|
const isSubtle =
|
||||||
flicker_time < 5 || flicker_break_chance < 5 || flicker_distance < 5;
|
flicker_time < 5 || flicker_break_chance < 5 || flicker_distance < 5;
|
||||||
|
|
||||||
const windowHeight = (isSubtle ? 220 : 190) + (extended_kin ? 95 : 0) + (savefile_selected ? 0 : 90);
|
const windowHeight =
|
||||||
|
(isSubtle ? 220 : 190) +
|
||||||
|
(extended_kin ? 95 : 0) +
|
||||||
|
(savefile_selected ? 0 : 90);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Window width={300} height={windowHeight} theme="abductor">
|
<Window width={300} height={windowHeight} theme="abductor">
|
||||||
@@ -56,7 +59,11 @@ export const ShadekinConfig = (props) => {
|
|||||||
)}
|
)}
|
||||||
{!savefile_selected && (
|
{!savefile_selected && (
|
||||||
<Stack.Item>
|
<Stack.Item>
|
||||||
<NoticeBox>WARNING: Your current selected savefile (in Character Setup) is not the same as your currently loaded savefile. Please select it to prevent savefile corruption.</NoticeBox>
|
<NoticeBox>
|
||||||
|
WARNING: Your current selected savefile (in Character Setup) is
|
||||||
|
not the same as your currently loaded savefile. Please select it
|
||||||
|
to prevent savefile corruption.
|
||||||
|
</NoticeBox>
|
||||||
</Stack.Item>
|
</Stack.Item>
|
||||||
)}
|
)}
|
||||||
<Stack.Item>
|
<Stack.Item>
|
||||||
|
|||||||
@@ -17,5 +17,5 @@
|
|||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"target": "ESNext"
|
"target": "ESNext"
|
||||||
},
|
},
|
||||||
"include": ["./*.d.ts", "./packages", "vitest.config.mts"]
|
"include": ["./*.d.ts", "./packages"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user