Skip to content

Commit

Permalink
fix: issue with request box size
Browse files Browse the repository at this point in the history
  • Loading branch information
jackMort committed Nov 16, 2024
1 parent 558c875 commit 7c4d1dc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/request/box.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ func (b Request) View() string {
}
}
} else if i == 2 {
counterSign = "󱐋"
if b.call != nil && b.call.Auth != nil {
counterSign = "󱐋"
}
} else if i == 3 {
counterSign = ""
}
Expand All @@ -189,9 +191,9 @@ func (b Request) View() string {
style = style.Border(border)
tabName := style.Render(t + " " + counter)
renderedTabs = append(renderedTabs, zone.Mark("tab_"+t, tabName))
tabNames += t + " " + counterSign + " "
tabNames += strings.TrimSpace(t + " " + counterSign)
}
renderedTabs = append(renderedTabs, tabGap.Render(strings.Repeat(" ", b.width-len(tabNames)-3)))
renderedTabs = append(renderedTabs, tabGap.Render(strings.Repeat(" ", b.width-len(tabNames)-21)))

windowStyle = windowStyle.Height(b.height - 4)

Expand Down

0 comments on commit 7c4d1dc

Please sign in to comment.