Skip to content

Commit 330e9cc

Browse files
committed
fix: center pagination in mobile view for profile page
1 parent f053a3d commit 330e9cc

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/components/layout/SimplePage.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export default {
4646
display: flex;
4747
align-items: center;
4848
justify-content: center;
49-
width: 1.375rem;
5049
height: 1.375rem;
5150
margin: 0 .125rem;
5251
color: $base-font-color;
@@ -58,6 +57,10 @@ export default {
5857
cursor: pointer;
5958
outline: 0;
6059
user-select: none;
60+
@include break-mobile-sm {
61+
padding: 0 1rem;
62+
width: 0;
63+
}
6164
6265
&:focus, &:hover, &:focus:hover {
6366
color: $base-font-color;

src/components/users/UserPosts.vue

+4
Original file line numberDiff line numberDiff line change
@@ -326,5 +326,9 @@ export default {
326326
327327
.pagination-wrap {
328328
float: right;
329+
@include break-mobile-sm {
330+
float: unset;
331+
text-align: center;
332+
}
329333
}
330334
</style>

src/views/Profile.vue

+3
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,9 @@ export default {
632632
.title { font-weight: 600; }
633633
.pagination-wrap {
634634
float: right;
635+
@include break-mobile-sm {
636+
float: unset;
637+
}
635638
ul.pagination { float: right; margin-bottom: 0px; }
636639
}
637640
}

0 commit comments

Comments
 (0)