Jelajahi Sumber

feat(ui): set right border padding to 0 for Form, InputField, TextView, TreeView

rigormorrtiss 4 tahun lalu
induk
melakukan
772e915c61
3 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      ui/forms.go
  2. 1 1
      ui/inputfields.go
  3. 1 1
      ui/textviews.go

+ 1 - 1
ui/forms.go

@@ -14,7 +14,7 @@ func NewLoginForm(onLoginFormLoginButtonSelected func()) (f *tview.Form) {
 		SetButtonsAlign(tview.AlignCenter).
 		SetButtonBackgroundColor(tcell.GetColor("#5865F2")).
 		SetBorder(true).
-		SetBorderPadding(0, 0, 1, 1)
+		SetBorderPadding(0, 0, 1, 0)
 
 	return f
 }

+ 1 - 1
ui/inputfields.go

@@ -15,7 +15,7 @@ func NewMessageInputField(onMessageInputFieldInputCapture func(*tcell.EventKey)
 		SetBackgroundColor(tcell.GetColor(theme.InputFieldBackground)).
 		SetInputCapture(onMessageInputFieldInputCapture).
 		SetBorder(true).
-		SetBorderPadding(0, 0, 1, 1)
+		SetBorderPadding(0, 0, 1, 0)
 
 	return
 }

+ 1 - 1
ui/textviews.go

@@ -17,7 +17,7 @@ func NewMessagesTextView(app *tview.Application, theme *util.Theme) (textV *tvie
 		}).
 		SetBackgroundColor(tcell.GetColor(theme.TextViewBackground)).
 		SetBorder(true).
-		SetBorderPadding(0, 0, 1, 1).
+		SetBorderPadding(0, 0, 1, 0).
 		SetTitleAlign(tview.AlignLeft)
 
 	return