Skip to content

Commit 82106c6

Browse files
committed
Simpler code
Signed-off-by: David Gageot <[email protected]>
1 parent a780e70 commit 82106c6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/tui/dialog/tool_confirmation.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,7 @@ func (d *toolConfirmationDialog) View() string {
171171
title := titleStyle.Render("Tool Confirmation")
172172

173173
// Separator - make it shorter and more subtle
174-
separatorWidth := contentWidth - 10
175-
if separatorWidth < 20 {
176-
separatorWidth = 20
177-
}
174+
separatorWidth := max(contentWidth-10, 20)
178175
separator := lipgloss.NewStyle().
179176
Foreground(lipgloss.Color("#4b5563")).
180177
Align(lipgloss.Center).

0 commit comments

Comments
 (0)