mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 21:38:01 +00:00
wip: refactoring tui
This commit is contained in:
parent
61396b93ed
commit
10ddd654cf
3 changed files with 7 additions and 5 deletions
|
@ -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()).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue