Skip to content

Commit 847d4e5

Browse files
fix: center and align previous and next buttons (#1718)
* fix: prev and next buttons were not propertly centered and aligned * fix: removing flex-basis property for navigation buttons
1 parent b89cdb4 commit 847d4e5

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/index.scss

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@
328328
.unit-navigation {
329329
display: flex;
330330
justify-content: center;
331+
gap: 5px;
331332
max-width: 640px;
332333
margin: 0 auto;
333334

@@ -344,27 +345,12 @@
344345
border-radius: 6px;
345346
}
346347
}
347-
348-
.next-button {
349-
flex-basis: 75%;
350-
351-
@media (max-width: -1 + map-get($grid-breakpoints, "sm")) {
352-
flex-basis: 100%;
353-
}
354-
}
355-
356-
.previous-button {
357-
flex-basis: 25%;
358-
359-
@media (max-width: -1 + map-get($grid-breakpoints, "sm")) {
360-
flex-basis: 100%;
361-
}
362-
}
363348
}
364349

365350
.top-unit-navigation {
366351
display: flex;
367352
max-width: 100%;
353+
gap: 5px;
368354
justify-content: flex-end;
369355

370356
.next-button,

0 commit comments

Comments
 (0)