소스 검색

chore(lint): pull out magic number

Christian Rocha 7 달 전
부모
커밋
f3f7e4d30e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      internal/tui/components/chat/splash/splash.go

+ 2 - 1
internal/tui/components/chat/splash/splash.go

@@ -67,13 +67,14 @@ func (s *splashCmp) View() tea.View {
 
 func (s *splashCmp) logoBlock() string {
 	t := styles.CurrentTheme()
+	const padding = 2
 	return logo.Render(version.Version, false, logo.Opts{
 		FieldColor:   t.Primary,
 		TitleColorA:  t.Secondary,
 		TitleColorB:  t.Primary,
 		CharmColor:   t.Secondary,
 		VersionColor: t.Primary,
-		Width:        s.width - 2, // -2 for padding
+		Width:        s.width - padding,
 	})
 }