Skip to content

Commit e160ff4

Browse files
committed
fix(ui): login auth callback format and middleware tabs layout
Pass format: 'text' to api.auth.callback on the login page. Add flex flex-col to Tabs in MiddlewareComposeEditor so tab content fills the column layout.
1 parent fd51dbc commit e160ff4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/config_editor/middleware_compose/MiddlewareEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function MiddlewareComposeEditor({
5555
<Tabs
5656
value={selectedTab !== undefined ? String(selectedTab) : undefined}
5757
onValueChange={value => setSelectedTab(value ? Number(value) : undefined)}
58-
className="w-full"
58+
className="w-full flex flex-col"
5959
>
6060
<TabsList className="flex w-full flex-wrap gap-1 h-auto min-h-9 p-1">
6161
{keys.map((k, index) => (

src/routes/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function LoginPage() {
4343
async (value: FormValues) => {
4444
form.clearErrors()
4545
await api.auth
46-
.callback(value)
46+
.callback(value, { format: 'text' })
4747
.then(() => navigate({ to: '/', replace: true }))
4848
.catch(error => form.password.setError(formatError(error).message))
4949
},

0 commit comments

Comments
 (0)