Skip to content

Commit 71c5b0c

Browse files
committed
feat(pod): use space between on domain list and clear bg color
1 parent ef02af8 commit 71c5b0c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

internal/tui/ui/panel/pod.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,10 @@ type domainItem struct {
533533

534534
func renderDomainRow(item components.ScrollItem, width int, selected bool) string {
535535
di := item.(domainItem)
536-
content := fmt.Sprintf(" %s :%d", di.domain.Domain, di.domain.Port)
536+
537+
left := " " + di.domain.Domain
538+
right := fmt.Sprintf(":%d", di.domain.Port)
539+
content := styles.SpaceBetween(width, left, right)
537540

538541
style := lipgloss.NewStyle().Width(width)
539542
if selected {
@@ -544,8 +547,6 @@ func renderDomainRow(item components.ScrollItem, width int, selected bool) strin
544547
Render(content)
545548
}
546549
return style.
547-
Background(styles.ColorBackgroundPanel()).
548-
Foreground(styles.ColorForeground()).
549550
Render(content)
550551
}
551552

0 commit comments

Comments
 (0)