Skip to content

Commit cea339c

Browse files
Improve layout
1 parent 78a58d6 commit cea339c

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/components/display/formFooter/testConnectionResult.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export function FormFooterTestConnectionResult({
136136
errorLogs && (errorLogs.message || errorLogs.data.message) === 'Logs not available';
137137

138138
return (
139-
<Stack spacing={3}>
139+
<Stack gap={3}>
140140
<Card ref={resultCardRef}>
141141
<CardContent sx={{ paddingY: 4, paddingX: 2, '&:last-child': { paddingBottom: 4 } }}>
142142
<Stack

src/components/display/testConnectionLogs/index.tsx

+8-5
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,16 @@ export function TestConnectionLogs({ id, logs }: Props) {
9797
alignItems="center"
9898
direction="row"
9999
justifyContent="space-between"
100-
spacing={2}
100+
gap={2}
101+
flexWrap="wrap"
101102
width="100%"
102103
>
103-
<Box
104-
display="inline-grid"
104+
<Stack
105+
alignItems="center"
106+
direction="row"
107+
justifyContent="flex-start"
105108
gap={0.5}
106-
gridTemplateColumns={{ md: 'auto auto auto auto', xs: 'auto auto' }}
109+
flexWrap="wrap"
107110
>
108111
<MenuItem
109112
color="secondary"
@@ -149,7 +152,7 @@ export function TestConnectionLogs({ id, logs }: Props) {
149152
>
150153
Error
151154
</MenuItem>
152-
</Box>
155+
</Stack>
153156
{filteredLogs.length > 0 && (
154157
<Button
155158
color="inherit"

src/components/form/configUIForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function ConfigUIForm({ prepareSubmitValues, container }: ConfigUIFormPro
260260
</Stack>
261261
</form>
262262
</Box>
263-
<Box sx={{ width: 500, minWidth: 360, position: 'sticky', top: 10 }}>
263+
<Box sx={{ width: { xs: 360, lg: 500 }, minWidth: 360, position: 'sticky', top: 10 }}>
264264
<GuideComponent />
265265
</Box>
266266
</Stack>

src/hooks/useGetTestConnectionLogs.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { ReactNode, useCallback, useEffect, useRef, useState } from 'react';
33
import useTheme from '@mui/material/styles/useTheme';
44

55
import { SyncLogLevel } from '../types';
6-
import { cloudQueryApiBaseUrl } from '../utils';
76
import customFetch from '../utils/customFetch';
87
import { parseSyncLogsByLevel } from '../utils/logs';
98

0 commit comments

Comments
 (0)