Skip to content

Commit 1b14e44

Browse files
committed
Show number of hidden authors
1 parent 6e58fc4 commit 1b14e44

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

src/assets/scss/_maps_redux.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383

8484
.mr-body {
8585
position: relative;
86+
display: flex;
87+
flex-direction: column;
88+
height: 100%;
8689

8790
.mr-buttons {
8891
display: flex;
@@ -137,19 +140,20 @@
137140
gap: 4px;
138141
justify-content: center;
139142
margin-bottom: 4px;
143+
height: 100%;
140144

141145
.mr-author {
142146
position: relative;
143147
display: flex;
144148
flex-direction: row;
145-
align-items: center;
146149

147150
img {
148151
width: 18px;
149152
height: 18px;
150153
margin-right: .25rem;
151-
image-rendering: pixelated;
154+
margin-top: .25rem;
152155
border-radius: .25rem;
156+
image-rendering: pixelated;
153157
}
154158

155159
span {

src/partials/pages/maps_redux/components/maps_redux_thumbnail.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,21 @@
7070
</div>
7171
{{/lt}}
7272
{{/each}}
73+
{{#if (gte (length authors) 3)}}
74+
<div class="mr-author">
75+
<span>+{{subtract (length authors) 2}} more</span>
76+
</div>
77+
{{/if}}
7378
</div>
7479
{{/if}}
7580
<div class="mr-buttons">
76-
<a class="btn btn-primary" role="button" data-action="open-download" data-id="{{id}}">
81+
<a class="btn btn-primary" role="button" data-action="open-download" data-id="{{id}}" title="Download">
7782
<i class="fa fa-download"/>
7883
</a>
79-
<a href="{{source.github_url}}/map.xml" target="_blank" class="btn btn-primary" role="button" data-toggle="download-modal">
84+
<a href="{{source.github_url}}/map.xml" target="_blank" class="btn btn-primary" role="button" title="XML">
8085
<i class="fa fa-code"/>
8186
</a>
82-
<a href="/maps/viewer?name={{encodeURI name}}&store={{source.maintainer}}%2F{{source.repository}}%2F{{encodeURI source.path}}{{#eq source.world_path ''}}%2Fdefault{{else}}{{replace source.world_path '/' '%2F'}}{{/eq}}" target="_blank" class="btn btn-primary" role="button">
87+
<a href="/maps/viewer?name={{encodeURI name}}&store={{source.maintainer}}%2F{{source.repository}}%2F{{encodeURI source.path}}{{#eq source.world_path ''}}%2Fdefault{{else}}{{replace source.world_path '/' '%2F'}}{{/eq}}" target="_blank" class="btn btn-primary" role="button" title="3D Overview">
8388
<i class="fa fa-mountain-sun"/>
8489
</a>
8590
</div>

0 commit comments

Comments
 (0)