on main help sign in
chore: fix padding for info
1aefed2Kujtim Hoxha
internal/tui/components/chat/splash/splash.go+10−7
@@ -460,12 +460,15 @@ func (s *splashCmp) Cursor() *tea.Cursor {
460}
460}
461
461
462func (s *splashCmp) infoSection() string {
462func (s *splashCmp) infoSection() string {
463+ t := styles.CurrentTheme()
464+ return t.S().Base.PaddingLeft(2).Render(
463− return lipgloss.JoinVertical(
465+ lipgloss.JoinVertical(
464− lipgloss.Left,
466+ lipgloss.Left,
465− s.cwd(),
467+ s.cwd(),
466− "",
468+ "",
467− lipgloss.JoinHorizontal(lipgloss.Left, s.lspBlock(), s.mcpBlock()),
469+ lipgloss.JoinHorizontal(lipgloss.Left, s.lspBlock(), s.mcpBlock()),
468− "",
470+ "",
471+ ),
469 )
472 )
470}
473}
471
474
@@ -538,7 +541,7 @@ func (s *splashCmp) Bindings() []key.Binding {
538}
541}
539
542
540func (s *splashCmp) getMaxInfoWidth() int {
543func (s *splashCmp) getMaxInfoWidth() int {
541− return min(s.width, 40)
544+ return min(s.width-2, 40) // 2 for left padding
542}
545}
543
546
544func (s *splashCmp) cwd() string {
547func (s *splashCmp) cwd() string {