Skip to content

Commit

Permalink
Add footer to goals dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Sep 10, 2023
1 parent f9a1c31 commit fd07f43
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Swarm/TUI/View/Objective.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ renderGoalsDisplay :: GoalDisplay -> Widget Name
renderGoalsDisplay gd =
if hasMultiple
then
hBox
[ leftSide
, hLimitPercent 70 $ padLeft (Pad 2) goalElaboration
vBox
[ hBox
[ leftSide
, hLimitPercent 70 $ padLeft (Pad 2) goalElaboration
]
, footer
]
else goalElaboration
where
footer = hCenter $ withAttr italicAttr $ txt "NOTE: [Tab] toggles focus between panes"
hasMultiple = hasMultipleGoals $ gd ^. goalsContent
lw = _listWidget gd
fr = _focus gd
Expand Down

0 comments on commit fd07f43

Please sign in to comment.