diff --git a/tgui/packages/tgui/interfaces/StatsBrowser.tsx b/tgui/packages/tgui/interfaces/StatsBrowser.tsx index cdcb65bcbb6..375c51b6e36 100644 --- a/tgui/packages/tgui/interfaces/StatsBrowser.tsx +++ b/tgui/packages/tgui/interfaces/StatsBrowser.tsx @@ -133,7 +133,7 @@ const Stat = (props, context) => { - +
{freepoint} unused pt
@@ -144,17 +144,17 @@ const Stat = (props, context) => { {filteredPerks?.map(perk => ( { act('remove_perk', { id: perk.id }); }} perkactiveclick={() => { - if (filteredPerks.length - 1 !== perk) { - if (selectedperk === filteredPerks.indexOf(perk)) { + if (filteredPerks.length - 1 !== Number(selectedperk)) { + if (Number(selectedperk) === filteredPerks.indexOf(perk)) { setSelectedPerk("none"); } else { - setSelectedPerk(filteredPerks.indexOf(perk)); + setSelectedPerk(String(filteredPerks.indexOf(perk))); } } }} /> @@ -164,12 +164,12 @@ const Stat = (props, context) => { @@ -195,7 +195,7 @@ const PerkActive = props => { } = perk; return (
-
+
@@ -208,9 +208,9 @@ const PerkActive = props => {
{level}
-
{name}
+
{name}
-
{desc}
+
{desc}
= 1 && "active text-white drop-shadow"])}> @@ -251,9 +251,9 @@ const Perk = props => {
{level}
-
{name}
+
{name}
-
{desc}
+
{desc}
= 1 && "active text-white drop-shadow"])}> diff --git a/tgui/packages/tgui/styles/interfaces/StatsBrowser.scss b/tgui/packages/tgui/styles/interfaces/StatsBrowser.scss index 4aa8fd34c04..8975903f3c9 100644 --- a/tgui/packages/tgui/styles/interfaces/StatsBrowser.scss +++ b/tgui/packages/tgui/styles/interfaces/StatsBrowser.scss @@ -346,6 +346,9 @@ a { color: #f4e9cb; } +.z-10 { + z-index: 10; +} .w-8 { width: 2rem; } @@ -473,6 +476,10 @@ a { position: absolute; } +.font-18px { + font-size: 18px; +} + .h-\[28px\] { height: 28px; } @@ -581,3 +588,4 @@ a { background-color: rgba(244,233,203,var(--tw-bg-opacity)); } } +