Skip to content

Commit

Permalink
UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonononoki committed Feb 28, 2021
1 parent 60c5775 commit 9d55eb4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/main/resources/static/css/search.css
Expand Up @@ -72,6 +72,10 @@
float: right;
}

.user-search-card {
scroll-snap-align: start;
}

.user-search-div{
margin-bottom: 24px;
scroll-snap-type: y mandatory;
Expand Down Expand Up @@ -143,6 +147,10 @@
padding: 12px;
padding-top: 36px;
}

.user-search-card {
height: 100%;
}
}
/*very small screens*/
@media screen and (max-width: 600px) {
Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/static/css/userProfile.css
@@ -0,0 +1,9 @@
#audio-play-button {
width: 300px;
}

@media screen and (max-width: 338px) {
#audio-play-button {
width: 100%;
}
}
3 changes: 1 addition & 2 deletions src/main/resources/templates/fragments.html
Expand Up @@ -163,8 +163,7 @@
<span th:text="#{no-users-found}"></span>
</div>

<div th:each="user : ${users}" class="user-search-card"
style="scroll-snap-align: start; height: 100%;">
<div th:each="user : ${users}" class="user-search-card">
<div class="swiper-container" th:id="${user.idEncoded}">
<div class="swiper-wrapper">

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/templates/userProfile.html
Expand Up @@ -13,6 +13,7 @@
<link rel="stylesheet" href="/css/lib/swiper.min.css" />
<link rel="stylesheet" href="/css/alovoa.css" />
<link rel="stylesheet" href="/css/search.css" />
<link rel="stylesheet" href="/css/userProfile.css" />
<title th:value="${user.firstName}"></title>
</head>
<body>
Expand Down

0 comments on commit 9d55eb4

Please sign in to comment.