1 parent d002e2e commit 764d21fCopy full SHA for 764d21f
1 file changed
packages/devframe/src/recipes/interactive-auth.ts
@@ -105,11 +105,11 @@ export function createAuthBanner(options: CreateAuthBannerOptions = {}): AuthBan
105
}
106
const labelWidth = Math.max(...rows.map(([label]) => label.length))
107
const contentWidth = Math.max(...rows.map(([, value]) => labelWidth + 2 + value.length))
108
- const titleBarLength = title.length + 3
+ const titleBarLength = title.length + 2
109
const lineWidth = Math.max(contentWidth, titleBarLength - 2)
110
111
const top = [
112
- palette.border(`╭─`),
+ palette.border(`╭`),
113
palette.title(title),
114
palette.border(`${'─'.repeat(Math.max(lineWidth + 2 - titleBarLength, 0))}╮`),
115
].join(' ')
0 commit comments