Skip to content

Commit 103be43

Browse files
mdermentzimikesname
authored andcommitted
People page pagination list aligned center.
1 parent 995ee79 commit 103be43

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

modules/portal/app/assets/css/portal/_style.scss

+10-2
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,9 @@ ul.pagination {
10311031
}
10321032
}
10331033

1034+
.people-page .pagination {
1035+
justify-content: center;
1036+
}
10341037

10351038
// User grid
10361039
.user-grid {
@@ -1047,12 +1050,17 @@ ul.pagination {
10471050

10481051
.user-info {
10491052
.img-container {
1050-
img {
1053+
.user-avatar {
10511054
border-radius: 50%;
10521055
width: 8rem;
10531056
height: 8rem;
10541057
overflow: hidden;
1055-
object-fit: cover;
1058+
display: inline-block;
1059+
img {
1060+
object-fit: cover;
1061+
width: 100%;
1062+
height: 100%;
1063+
}
10561064
}
10571065
}
10581066
text-align: center;

modules/portal/app/views/userProfile/browseUsers.scala.html

+10-7
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
@if(result.params.isFiltered || result.nonEmpty) {
1313
@helper.form(action = searchAction, 'role -> "form") {
1414
@views.html.common.search.searchBar(result.params, tips = false)
15-
16-
<ul class="user-grid">
17-
@result.page.map { case (user, hit) =>
15+
<div class="people-page">
16+
<ul class="user-grid">
17+
@result.page.map { case (user, hit) =>
1818
<li class="user-grid-item user-info">
1919
<div class="user-info-details">
2020
<a href="@controllers.portal.social.routes.Social.userProfile(user.id)" class="gravitar img-container">
2121
<span class="helper"></span>
22-
<img alt="Image" width="100%" height="auto" src="@views.Helpers.gravitar(user.data.imageUrl)" />
22+
<div class="user-avatar">
23+
<img alt="Image" width="100%" height="auto" src="@views.Helpers.gravitar(user.data.imageUrl)" />
24+
</div>
2325
</a>
2426
<h3><a class="name" href="@controllers.portal.social.routes.Social.userProfile(user.id)">@user.toStringLang</a></h3>
2527
@userInfo {
@@ -37,9 +39,10 @@ <h3><a class="name" href="@controllers.portal.social.routes.Social.userProfile(u
3739
}
3840
</div>
3941
</li>
40-
}
41-
</ul>
42-
@common.pagination(result.page)
42+
}
43+
</ul>
44+
@common.pagination(result.page)
45+
</div>
4346
}
4447
}
4548
}

0 commit comments

Comments
 (0)