فهرست منبع

wip: refactoring tui

adamdottv 8 ماه پیش
والد
کامیت
78f65e4789
1فایلهای تغییر یافته به همراه0 افزوده شده و 8 حذف شده
  1. 0 8
      packages/tui/internal/components/dialog/session.go

+ 0 - 8
packages/tui/internal/components/dialog/session.go

@@ -138,11 +138,7 @@ func (s *sessionDialogComponent) View() string {
 	content := lipgloss.JoinVertical(
 		lipgloss.Left,
 		title,
-		// baseStyle.Width(width).Render(""),
-		"",
 		s.list.View(),
-		"",
-		// baseStyle.Width(width).Render(""),
 	)
 
 	style := styles.BaseStyle().
@@ -157,16 +153,12 @@ func (s *sessionDialogComponent) View() string {
 	style = style.
 		BorderLeft(true).
 		BorderRight(true).
-		// AlignHorizontal(align).
 		BorderLeftForeground(t.BackgroundSubtle()).
 		BorderLeftBackground(t.Background()).
 		BorderRightForeground(t.BackgroundSubtle()).
 		BorderRightBackground(t.Background())
 
 	return style.
-		// Border(lipgloss.ThickBorder()).
-		// BorderBackground(t.BackgroundElement()).
-		// BorderForeground(t.BorderSubtle()).
 		Width(outerWidth).
 		Render(content)
 }