Skip to content

Commit 3ba1d86

Browse files
committed
Fix scrollbar rendering in web terminals
Replace ⎪ (U+23AA CURLY BRACKET EXTENSION) with │ (U+2502 BOX DRAWINGS LIGHT VERTICAL) for both the scrollbar track and thumb characters. Remove bold styling from the thumb, differentiating it from the track by color only. The ⎪ character rendered poorly in web terminals (ghostty-web via tmux), and bold styling caused the glyph to appear shorter than the track. Using │ with color-only differentiation fixes both issues. Assisted-By: docker-agent
1 parent c43c6d8 commit 3ba1d86

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/tui/components/scrollbar/scrollbar.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ type Model struct {
3434
func New() *Model {
3535
return &Model{
3636
width: Width,
37-
trackChar: "",
38-
thumbChar: "",
37+
trackChar: "",
38+
thumbChar: "",
3939
}
4040
}
4141

pkg/tui/styles/styles.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ var (
404404
// Scrollbar
405405
var (
406406
TrackStyle = lipgloss.NewStyle().Foreground(BorderSecondary)
407-
ThumbStyle = lipgloss.NewStyle().Foreground(Info).Background(BackgroundAlt).Bold(true)
408-
ThumbActiveStyle = lipgloss.NewStyle().Foreground(White).Background(BackgroundAlt).Bold(true)
407+
ThumbStyle = lipgloss.NewStyle().Foreground(Info).Background(BackgroundAlt)
408+
ThumbActiveStyle = lipgloss.NewStyle().Foreground(White).Background(BackgroundAlt)
409409
)
410410

411411
// Resize Handle Style

pkg/tui/styles/theme.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,8 +1161,8 @@ func rebuildStyles() {
11611161

11621162
// Scrollbar styles
11631163
TrackStyle = lipgloss.NewStyle().Foreground(BorderSecondary)
1164-
ThumbStyle = lipgloss.NewStyle().Foreground(Info).Background(BackgroundAlt).Bold(true)
1165-
ThumbActiveStyle = lipgloss.NewStyle().Foreground(White).Background(BackgroundAlt).Bold(true)
1164+
ThumbStyle = lipgloss.NewStyle().Foreground(Info).Background(BackgroundAlt)
1165+
ThumbActiveStyle = lipgloss.NewStyle().Foreground(White).Background(BackgroundAlt)
11661166

11671167
// Resize handle styles
11681168
ResizeHandleStyle = BaseStyle.Foreground(BorderSecondary)

0 commit comments

Comments
 (0)