Skip to content

Commit

Permalink
tgui research desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
kiVts committed Oct 5, 2023
1 parent 6f16651 commit b777f14
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tgui/packages/tgui/interfaces/ResearchTerminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const CompoundRecord = (props: CompoundRecordProps, context) => {
'print_type': compound.category,
'print_title': compound.id,
};
const isThreeWords = compound.type.document.split(' ')[0] === 'Simulation';
return (
<TableRow key={compound.id}>
<TableCell>
Expand All @@ -153,9 +154,16 @@ const CompoundRecord = (props: CompoundRecordProps, context) => {
</TableCell>

<TableCell className="chemical-td">
<span className="compound_label">
{compound.type.document.split(' ')[2]}
</span>
{!isThreeWords && (
<span className="compound_label">
{compound.type.document.split(' ')[2]}
</span>
)}
{isThreeWords && (
<span className="compound_label">
{compound.type.document.split(' ')[3]}
</span>
)}
</TableCell>

<TableCell>
Expand Down

0 comments on commit b777f14

Please sign in to comment.