Skip to content

Commit f596d69

Browse files
committed
fix: last few touches to mobile view
1 parent d0c3dcd commit f596d69

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

darkmap/front/galaxy.templ

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ templ Menu(menu_kind MenuKind, data *export_map.Export) {
246246
@MultiLineOption([]string{"To Stats"})
247247
</div>
248248
<a href={ templ.SafeURL(types.GetCtx(ctx).SiteRoot) }>
249-
<img style="max-height:50px;" src={ types.GetCtx(ctx).StaticRoot + "stat_favicon.ico" }/>
249+
<img style="max-height:min(6vh,6vw);" src={ types.GetCtx(ctx).StaticRoot + "stat_favicon.ico" }/>
250250
</a>
251251
</div>
252252
}
@@ -364,7 +364,7 @@ templ Menu(menu_kind MenuKind, data *export_map.Export) {
364364
hx-swap="outerHTML"
365365
style="cursor:pointer"
366366
>
367-
<img style="max-height:6vh;" src={ types.GetCtx(ctx).StaticRoot + "map_legend.png" }/>
367+
<img style="max-height:min(6vh,6vw);" src={ types.GetCtx(ctx).StaticRoot + "map_legend.png" }/>
368368
</div>
369369
</div>
370370
<div class="menu-item">
@@ -373,10 +373,10 @@ templ Menu(menu_kind MenuKind, data *export_map.Export) {
373373
</div>
374374
<div>
375375
if menu_kind == MenuKindGalaxy {
376-
<img style="max-height:50px;" src={ types.GetCtx(ctx).StaticRoot + "galaxy_disabled.png" }/>
376+
<img style="max-height:min(6vh,6vw);" src={ types.GetCtx(ctx).StaticRoot + "galaxy_disabled.png" }/>
377377
} else {
378378
<a href={ templ.SafeURL(types.GetCtx(ctx).SiteRoot + map_urls.Index.ToString()) }>
379-
<img style="max-height:6vh;" src={ types.GetCtx(ctx).StaticRoot + "galaxy_enabled.png" }/>
379+
<img style="max-height:min(6vh,6vw);" src={ types.GetCtx(ctx).StaticRoot + "galaxy_enabled.png" }/>
380380
</a>
381381
}
382382
</div>

darkmap/front/static_front/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ system-label-wrap.unhidden_infocard_label {
118118
--inactive-color: #98989c;
119119
position: relative;
120120
aspect-ratio: 292 / 142;
121-
height: 2.5vh;
121+
height: min(2.5vh, 3vw);
122122
}
123123

124124
.toggle-input {

0 commit comments

Comments
 (0)