diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ac55d2d..bd4ed6b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,13 +1,26 @@ - + + + + + + + + + + @@ -79,12 +92,26 @@ + + + @@ -94,6 +121,10 @@ + + + + @@ -102,36 +133,40 @@ - + - - + + - - + + - - + + - + + + + + - + - + - + \ No newline at end of file diff --git a/config.ini b/config.ini index 0f7049d..4e388a0 100644 --- a/config.ini +++ b/config.ini @@ -17,7 +17,7 @@ url = cloud.wolf-house.net icon = static/images/apps/nextcloud.png sidebar_icon = static/images/apps/nextcloud.png description = File server and sync software. -open_in = iframe +open_in = new_tab [Wolflix] prefix = https:// diff --git a/dashmachine/site.db b/dashmachine/site.db index afd3557..5366e25 100644 Binary files a/dashmachine/site.db and b/dashmachine/site.db differ diff --git a/dashmachine/static/css/global/dashmachine.css b/dashmachine/static/css/global/dashmachine.css index 3d2590a..cd35a44 100644 --- a/dashmachine/static/css/global/dashmachine.css +++ b/dashmachine/static/css/global/dashmachine.css @@ -276,6 +276,22 @@ input:disabled { /* END FORM STYLES */ /* SIDENAV*/ +#show-sidenav { + position: fixed; + bottom: 10px; + left: 0px; + height: 40px; + width: 48px; + z-index: 9999; + border-radius: 0 10px 10px 0; + background: var(--theme-primary); +} +#show-sidenav .material-icons-outlined { + font-size: 32px; + position: relative; + left: 15px; + top: 5px; +} .sidenav-main .sidenav-collapsible { border-radius: 0px; background-color: var(--theme-surface); diff --git a/dashmachine/static/js/global/dashmachine.js b/dashmachine/static/js/global/dashmachine.js index ab7aad7..6a09039 100644 --- a/dashmachine/static/js/global/dashmachine.js +++ b/dashmachine/static/js/global/dashmachine.js @@ -349,6 +349,21 @@ $(document).ready(function () { init_tooltips(); init_copy_btn(); init_select(); + + $("#hide-sidenav").on('click', function(e) { + $("#main-sidenav").addClass('hide'); + $("#main.main-full").css('padding-left', 0); + $("#show-sidenav").removeClass('hide'); + }); + + $("#show-sidenav .material-icons-outlined").on('click', function(e) { + $("#main-sidenav").removeClass('hide'); + $("#main.main-full").css('padding-left', 64); + $("#show-sidenav").addClass('hide'); + }); + + $( "#show-sidenav" ).draggable({ axis: "y" }); + $(".dropdown-trigger").dropdown({ coverTrigger: false, constrainWidth: false diff --git a/dashmachine/templates/main/base.html b/dashmachine/templates/main/base.html index 2d94ed6..bb6ff2e 100644 --- a/dashmachine/templates/main/base.html +++ b/dashmachine/templates/main/base.html @@ -68,6 +68,9 @@ {% block footer %}{% endblock footer %} + diff --git a/dashmachine/templates/main/layout.html b/dashmachine/templates/main/layout.html index c921631..a57ebbd 100644 --- a/dashmachine/templates/main/layout.html +++ b/dashmachine/templates/main/layout.html @@ -7,8 +7,11 @@ {% endblock header %} {% block sidenav %} +
+ chevron_right +
-