on main help sign in
chore: fix padding for info
commit1aefed22aafa777492c25ebddc1336112a04076f authorKujtim Hoxha <kujtimii.h@gmail.com> dateThu 10 Jul 2025, 16:25 (1 year ago) parent878ce15
1 file changed+10−7
internal/tui/components/chat/splash/splash.go+10−7
internal/tui/components/chat/splash/splash.go+10−7
@@ -460,12 +460,15 @@ func (s *splashCmp) Cursor() *tea.Cursor {
460460}
461461
462462func (s *splashCmp) infoSection() string {
463− return lipgloss.JoinVertical(
464− lipgloss.Left,
465− s.cwd(),
466− "",
467− lipgloss.JoinHorizontal(lipgloss.Left, s.lspBlock(), s.mcpBlock()),
468− "",
463+ t := styles.CurrentTheme()
464+ return t.S().Base.PaddingLeft(2).Render(
465+ lipgloss.JoinVertical(
466+ lipgloss.Left,
467+ s.cwd(),
468+ "",
469+ lipgloss.JoinHorizontal(lipgloss.Left, s.lspBlock(), s.mcpBlock()),
470+ "",
471+ ),
469472 )
470473}
471474
@@ -538,7 +541,7 @@ func (s *splashCmp) Bindings() []key.Binding {
538541}
539542
540543func (s *splashCmp) getMaxInfoWidth() int {
541− return min(s.width, 40)
544+ return min(s.width-2, 40) // 2 for left padding
542545}
543546
544547func (s *splashCmp) cwd() string {