mirror of
https://github.com/usestrix/strix.git
synced 2026-08-16 09:26:39 +02:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
754da8bcb8 |
@@ -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