mirror of
https://github.com/usestrix/strix.git
synced 2026-08-23 19:32:37 +02:00
fix(tui): drop the shift+enter newline hint from the setup footer
This commit is contained in:
@@ -496,8 +496,7 @@ func (m Model) setupHintsView(width int) string {
|
|||||||
key := lipgloss.NewStyle().Foreground(white).Render
|
key := lipgloss.NewStyle().Foreground(white).Render
|
||||||
label := render.Dim().Render
|
label := render.Dim().Render
|
||||||
hint := func(k, text string) string { return key(k) + label(" "+text) }
|
hint := func(k, text string) string { return key(k) + label(" "+text) }
|
||||||
left := hint("enter", "launch scan") + label(" ") + hint("shift+enter", "newline") +
|
left := hint("enter", "launch scan") + label(" ") + hint("ctrl+c", "quit")
|
||||||
label(" ") + hint("ctrl+c", "quit")
|
|
||||||
if lipgloss.Width(left) > inner {
|
if lipgloss.Width(left) > inner {
|
||||||
left = hint("enter", "launch scan")
|
left = hint("enter", "launch scan")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user