Skip to content

Commit 47644ab

Browse files
committed
fix: Fix loading spinner alignment
1 parent 1697bc9 commit 47644ab

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/pages/Plugins.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ const Plugins: React.FC = () => {
233233
{/* Plugins Grid */}
234234
<Grid container spacing={2}>
235235
{isLoading && queryParams.page === 1 ? (
236-
<Box display="flex" justifyContent="center" alignItems="center" height="50vh" width="100%">
236+
<Grid item xs={12} display="flex" justifyContent="center" alignItems="center" height="50vh">
237237
<CircularProgress size={80} />
238-
</Box>
238+
</Grid>
239239
) : (
240240
<>
241241
{allPlugins.map((plugin) => (
@@ -256,9 +256,9 @@ const Plugins: React.FC = () => {
256256
</Grid>
257257
))}
258258
{isLoading && queryParams.page > 1 && (
259-
<Box textAlign="center" width="100%" mt={2}>
259+
<Grid item xs={12} display="flex" justifyContent="center" alignItems="center" height="50vh" mt={2}>
260260
<CircularProgress size={24} />
261-
</Box>
261+
</Grid>
262262
)}
263263
</>
264264
)}

src/pages/Themes.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ const Themes: React.FC = () => {
272272
{/* Themes Grid */}
273273
<Grid container spacing={2}>
274274
{isLoading && queryParams.page === 1 ? (
275-
<Box display="flex" justifyContent="center" alignItems="center" height="50vh" width="100%">
275+
<Grid item xs={12} display="flex" justifyContent="center" alignItems="center" height="50vh">
276276
<CircularProgress size={80} />
277-
</Box>
277+
</Grid>
278278
) : (
279279
allThemes.map((theme) => (
280280
<Grid item key={theme.id} xs={12} sm={6} md={4} xl={isPreviewVisible ? 4 : 3}>
@@ -298,9 +298,9 @@ const Themes: React.FC = () => {
298298
)}
299299

300300
{isLoading && queryParams.page > 1 && (
301-
<Box textAlign="center" width="100%" mt={2}>
301+
<Grid item xs={12} display="flex" justifyContent="center" alignItems="center" height="50vh" mt={2}>
302302
<CircularProgress size={24} />
303-
</Box>
303+
</Grid>
304304
)}
305305
</Grid>
306306
</Box>

0 commit comments

Comments
 (0)