Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Drathek <[email protected]>
  • Loading branch information
harryob and Drulikar authored Nov 9, 2024
1 parent 91ed9fa commit 34ce926
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ GLOBAL_LIST_INIT(bgstate_options, list(
return TRUE
if("loadout")
loadout_picker.tgui_interact(user)
return

if("flavor_text")
switch(href_list["task"])
Expand Down
6 changes: 6 additions & 0 deletions tgui/packages/tgui/interfaces/LoadoutPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,18 @@ const ItemRender = (props: {
tooltip={name}
onClick={() => act(loadout ? 'remove' : 'add', { name: name })}
disabled={!loadout && atLimit}
width="78px"
height="74px"
mb="3px"
mt="3px"
>
<DmIcon
icon={icon}
icon_state={icon_state}
height="64px"
width="64px"
mb={1}
mt={1}
fallback={<Loader />}
/>
<Box position="absolute" bottom="0px">
Expand Down

0 comments on commit 34ce926

Please sign in to comment.