Skip to content

Commit

Permalink
Add footer to goals dialog (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo authored Sep 10, 2023
1 parent db15c05 commit b014062
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 b014062

Please sign in to comment.