From 361aa1382c9c31ee66eb6cfcc650dd263e2ffb59 Mon Sep 17 00:00:00 2001 From: Ghommie <42542238+Ghommie@users.noreply.github.com> Date: Sun, 14 Jun 2020 01:19:07 +0200 Subject: [PATCH] progress --- tgui-next/packages/tgui/interfaces/Skills.js | 48 ++++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/tgui-next/packages/tgui/interfaces/Skills.js b/tgui-next/packages/tgui/interfaces/Skills.js index 63ee30a2ad..ec57f707f0 100644 --- a/tgui-next/packages/tgui/interfaces/Skills.js +++ b/tgui-next/packages/tgui/interfaces/Skills.js @@ -1,5 +1,5 @@ -import { decodeHtmlEntities } from 'common/string'; -import { Component, Fragment } from 'inferno'; +import { multiline, decodeHtmlEntities } from 'common/string'; +import { Fragment } from 'inferno'; import { act } from '../byond'; import { Box, Button, Section, LabeledList, Table, Tabs, Tooltip } from '../components'; @@ -85,17 +85,23 @@ const skillList = props => { ? skill.skill_base : skill.skill_mod ) - + {!!skill.mods_tooltip && ( + + ) || ( + + )} @@ -120,18 +126,20 @@ const skillList = props => { )}> {decodeHtmlEntities(skill.desc)} - {skill.modifiers && ( + {!!skill.modifiers && ( {skill.modifiers.map(modifier => { "+modifier.name+"\n"+modifier.desc - `} - position="relative" - /> - + content={ + decodeHtmlEntities( + `${modifier.name} + \n${modifier.desc} + `) + } + position="relative" /> + ; })}