charmbracelet / charmbracelet/bubbletea

Tab width top border

Open
#1,068 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
44.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Following the tabs example, If a fixed width is used with less tabs
```go
doc.WriteString(windowStyle.Width(100).Render(m.TabContent[m.activeTab]))
```

![image](https://github.com/user-attachments/assets/40e79718-adc4-4ffe-a98c-af2d3904398a)

The top border is missing. How to fix this?

Contributor guide

Open the contributing guide

Research direction

Start with the tabs example and reproduce the issue using a fixed width with fewer tabs, as shown in the report. Inspect how Width(100) and Render interact with the tab content and top border. Done means the top border renders correctly in this case, with a test or example confirming the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.