Skip to content

Commit 7c4d1dc

Browse files
committed
fix: issue with request box size
1 parent 558c875 commit 7c4d1dc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/request/box.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ func (b Request) View() string {
177177
}
178178
}
179179
} else if i == 2 {
180-
counterSign = "󱐋"
180+
if b.call != nil && b.call.Auth != nil {
181+
counterSign = "󱐋"
182+
}
181183
} else if i == 3 {
182184
counterSign = ""
183185
}
@@ -189,9 +191,9 @@ func (b Request) View() string {
189191
style = style.Border(border)
190192
tabName := style.Render(t + " " + counter)
191193
renderedTabs = append(renderedTabs, zone.Mark("tab_"+t, tabName))
192-
tabNames += t + " " + counterSign + " "
194+
tabNames += strings.TrimSpace(t + " " + counterSign)
193195
}
194-
renderedTabs = append(renderedTabs, tabGap.Render(strings.Repeat(" ", b.width-len(tabNames)-3)))
196+
renderedTabs = append(renderedTabs, tabGap.Render(strings.Repeat(" ", b.width-len(tabNames)-21)))
195197

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

0 commit comments

Comments
 (0)