Skip to content

Commit d4f701e

Browse files
authored
Merge pull request #291 from NGO-Algorithm-Audit/bugfix/events-on-mobile
fix issue where events would look bad on mobile
2 parents a5ac755 + 77362c4 commit d4f701e

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

assets/scss/templates/_main.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ input[type="checkbox"] {
108108
}
109109
}
110110

111-
.img-center {
111+
.img-event{
112112
width: auto;
113113
height: auto;
114114
position: absolute;
@@ -117,12 +117,10 @@ input[type="checkbox"] {
117117
left: 0;
118118
right: 0;
119119
margin: auto;
120-
}
121-
122-
.img-event{
123120
max-height: 140px;
124121
@media (max-width: 992px) {
125122
max-height:120px;
123+
position: inherit;
126124
}
127125
}
128126
// view ≤992px

layouts/events/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div class="ac-trigger">
5151
<div class="row justify-content-between m-0" >
5252
<div class="col-12 col-lg-2 p-0 mt-0 text-center">
53-
<img class="img-fluid img-center img-event p-4" src="{{$event.image}}" />
53+
<img class="img-fluid img-event p-4" src="{{$event.image}}" />
5454
</div>
5555
<div class="col pt-3 pb-5" style="background-color: #ffffff;">
5656
<div class="row align-items-center">

layouts/partials/landingpage/activityfeed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h3 style="color: #005aa7;">{{ .items_title }}</h3>
8989
<div class="row justify-content-between my-4 m-0">
9090
<!-- image -->
9191
<div class="col-12 col-lg-2 p-0 mt-0 text-center bg-white">
92-
<img class="img-fluid img-event img-center p-2" src="{{.image}}" />
92+
<img class="img-fluid img-event p-2" src="{{.image}}" />
9393
</div>
9494
<!-- /image -->
9595

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)