cinera_search.js: Pin ↑ button to top in landscape

This commit is contained in:
Matt Mascarenhas 2021-02-05 19:49:00 +00:00
parent 0a9d51b0d7
commit 5857a30eaf
3 changed files with 5 additions and 2 deletions

View File

@ -23,7 +23,7 @@ typedef struct
version CINERA_APP_VERSION = { version CINERA_APP_VERSION = {
.Major = 0, .Major = 0,
.Minor = 8, .Minor = 8,
.Patch = 3 .Patch = 4
}; };
#include <stdarg.h> // NOTE(matt): varargs #include <stdarg.h> // NOTE(matt): varargs

View File

@ -165,7 +165,7 @@ ul.cineraNavPlain li.current > a {
transform: rotate(180deg); transform: rotate(180deg);
} }
#cineraIndex .cineraTraversal .cineraButton #cineraIndex .cineraTraversalContainer .cineraButton
{ {
box-sizing: border-box; box-sizing: border-box;
display: inline-flex; display: inline-flex;

View File

@ -2839,16 +2839,19 @@ UseOrientation(Orientation)
{ {
case orientations.PORTRAIT: case orientations.PORTRAIT:
{ {
Nav.Controls.GridTraversal.Header.insertBefore(Nav.Controls.GridTraversal.Ascend, Nav.Controls.GridTraversal.Next);
Nav.GridContainer.classList.add("Portrait"); Nav.GridContainer.classList.add("Portrait");
} break; } break;
case orientations.LANDSCAPE_LEFT: case orientations.LANDSCAPE_LEFT:
{ {
Nav.Controls.GridTraversal.Header.parentElement.insertBefore(Nav.Controls.GridTraversal.Ascend, Nav.Controls.GridTraversal.Header);
Nav.GridContainer.classList.add("Landscape", "Left"); Nav.GridContainer.classList.add("Landscape", "Left");
} break; } break;
case orientations.LANDSCAPE_RIGHT: case orientations.LANDSCAPE_RIGHT:
{ {
Nav.Controls.GridTraversal.Header.parentElement.insertBefore(Nav.Controls.GridTraversal.Ascend, Nav.Controls.GridTraversal.Header);
Nav.GridContainer.classList.add("Landscape", "Right"); Nav.GridContainer.classList.add("Landscape", "Right");
} break; } break;
} }