made more of the javascript hopefulyl honour versions, sort of works, not fully deployed consistently but works well enough for home use in dev. Also tweaked how the layout looks on a phone so that la / ra buttons on beside the image. Still oddly needs me to shrink that page, but it is now visually right - odd
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
{% block main_content %}
|
||||
|
||||
<style>
|
||||
@media (max-width: 576px) {
|
||||
#la, #ra {
|
||||
padding: 5% !important;
|
||||
}
|
||||
}
|
||||
.norm-txt { font-size: 1.0rem }
|
||||
.form-check-input:checked {
|
||||
background-color: #39C0ED;
|
||||
@@ -116,17 +121,17 @@
|
||||
</div id="files_div">
|
||||
<div id="viewer_div" class="d-none">
|
||||
<div id="viewer" class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="row flex-nowrap">
|
||||
<!-- Left Buttons Column -->
|
||||
<div class="col-auto d-flex flex-column">
|
||||
<div class="col-auto d-flex flex-column min-width-0">
|
||||
<!-- Up Button (Small) -->
|
||||
<button title="Back to list" class="btn btn-outline-info btn-sm p-1 mb-1" onclick="goOutOfViewer()">
|
||||
<svg width="16" height="16" fill="currentColor">
|
||||
<use xlink:href="/internal/icons.svg#back"></use>
|
||||
<use xlink:href="{{url_for('internal', filename='icons.svg')}}?v={{js_vers['ic']}}#back"></use>
|
||||
</svg>
|
||||
</button>
|
||||
<!-- Left Button (large/flex-grow-1) -->
|
||||
<button title="Show previous image" class="btn btn-outline-info px-2 flex-grow-1"
|
||||
<button title="Show previous image" class="btn btn-outline-info px-2 flex-grow-1 overflow-hidden"
|
||||
style="padding: 10%" id="la" onClick="prevImageInViewer()">
|
||||
<svg width="16" height="16" fill="currentColor">
|
||||
<use xlink:href="{{url_for('internal', filename='icons.svg')}}?v={{js_vers['ic']}}#prev"/></svg>
|
||||
@@ -152,15 +157,15 @@
|
||||
<span id="fname_v"></span></figcaption>
|
||||
</div>
|
||||
<!-- Right-hand Buttons Column -->
|
||||
<div class="col-auto d-flex flex-column">
|
||||
<div class="col-auto d-flex flex-column min-width-0">
|
||||
<!-- Up Button (Small) -->
|
||||
<button title="Back to list" class="btn btn-outline-info btn-sm p-1 mb-1" onclick="goOutOfViewer()">
|
||||
<svg width="16" height="16" fill="currentColor">
|
||||
<use xlink:href="/internal/icons.svg#back"></use>
|
||||
<use xlink:href="{{url_for('internal', filename='icons.svg')}}?v={{js_vers['ic']}}#back"></use>
|
||||
</svg>
|
||||
</button>
|
||||
<!-- Right Button (large/flex-grow-1) -->
|
||||
<button title="Show next image" class="btn btn-outline-info px-2 flex-grow-1"
|
||||
<button title="Show next image" class="btn btn-outline-info px-2 flex-grow-1 overflow-hidden"
|
||||
style="padding: 10%" id="ra" onClick="nextImageInViewer()">
|
||||
<svg width="16" height="16" fill="currentColor">
|
||||
<use xlink:href="{{url_for('internal', filename='icons.svg')}}?v={{js_vers['ic']}}#next"/></svg>
|
||||
|
||||
Reference in New Issue
Block a user