Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 0eaf3e6

Browse files
committed
slightly improves tgui for complexus
1 parent 6c8032b commit 0eaf3e6

File tree

1 file changed

+15
-32
lines changed

1 file changed

+15
-32
lines changed

tgui/packages/tgui/interfaces/PsionicComplexus.tsx

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useBackend } from '../backend';
2-
import { Section, Stack } from '../components';
2+
import { Section, Stack, Table, Collapsible } from '../components';
3+
import { TableCell, TableRow } from '../components/Table';
34
import { Window } from '../layouts';
45

56
type Data = {
@@ -34,39 +35,21 @@ export const PsionicComplexus = (props, context) => {
3435
const { faculties = [] } = data;
3536
return (
3637
<Window width={620} height={500}>
37-
<Window.Content>
38-
<Section scrollable fill>
39-
<Stack vertical>
40-
<Stack.Item textColor="red" fontSize="20px">
41-
Summary
42-
</Stack.Item>
43-
<Stack.Item>
44-
<Stack vertical>
45-
{faculties.map(faculty => (
46-
<Stack.Item
47-
key={faculty.name}>
48-
<Section title={faculty.name}>
49-
50-
51-
<Stack vertical>
52-
53-
{faculty.powers.map(power => (
54-
<Stack.Item
55-
key={power.name}>
56-
{power.name + ": " + power.description}
57-
58-
</Stack.Item>
59-
60-
))}
61-
62-
</Stack>
38+
<Window.Content scrollable>
39+
{faculties.map(faculty => (
40+
<Section title={faculty.name} key={faculty.name}>
41+
{faculty.powers.map(power => (
42+
<Collapsible
43+
key={power.name}
44+
title={power.name} bold>
45+
<Section>
46+
{power.description}
6347
</Section>
64-
</Stack.Item>
48+
</Collapsible>
6549
))}
66-
</Stack>
67-
</Stack.Item>
68-
</Stack>
69-
</Section>
50+
</Section>
51+
52+
))}
7053
</Window.Content >
7154
</Window >
7255
);

0 commit comments

Comments
 (0)