wip: refactoring tui

This commit is contained in:
adamdottv 2025-06-13 11:27:05 -05:00
parent 61396b93ed
commit 10ddd654cf
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 7 additions and 5 deletions

View file

@ -245,7 +245,7 @@ func (m *messagesComponent) header() string {
base := styles.BaseStyle().Render
muted := styles.Muted().Render
headerLines := []string{}
headerLines = append(headerLines, toMarkdown("# "+m.app.Session.Title, width-4, t.BackgroundElement()))
headerLines = append(headerLines, toMarkdown("# "+m.app.Session.Title, width-4, t.Background()))
if m.app.Session.Share != nil && m.app.Session.Share.Url != "" {
headerLines = append(headerLines, muted(m.app.Session.Share.Url))
} else {
@ -256,7 +256,7 @@ func (m *messagesComponent) header() string {
header = styles.BaseStyle().
Width(width).
PaddingLeft(2).
Background(t.BackgroundElement()).
// Background(t.BackgroundElement()).
BorderLeft(true).
BorderRight(true).
BorderBackground(t.Background()).