NOW MANAGED ON CODEBERG
Updated settings nav to be more flexible
Dan Brown328d2514c487
diff --git a/resources/sass/_layout.scss b/resources/sass/_layout.scssindex cf2a1630e..519cb27ad 100644--- a/resources/sass/_layout.scss+++ b/resources/sass/_layout.scss@@ -124,6 +124,9 @@ body.flexbox {.flex-container-row {display: flex;flex-direction: row;+ &.v-center {+ align-items: center;+ }}.flex-container-column {@@ -131,9 +134,17 @@ body.flexbox {flex-direction: column;}+.flex-container-column.wrap, .flex-container-row.wrap {+ flex-wrap: wrap;+}+.flex {min-height: 0;flex: 1;+ &.fit-content {+ flex-basis: auto;+ flex-grow: 0;+ }}.justify-flex-end {diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.phpindex b688d9646..8adc1045b 100644--- a/resources/views/settings/index.blade.php+++ b/resources/views/settings/index.blade.php@@ -3,16 +3,7 @@@section('body')<div class="container small">- <div class="grid left-focus v-center no-row-gap">- <div class="py-m">- @include('settings.navbar', ['selected' => 'settings'])- </div>- <div class="text-right p-m">- <a target="_blank" rel="noopener noreferrer" href="https://github.com/BookStackApp/BookStack/releases">- BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}- </a>- </div>- </div>+ @include('settings.navbar-with-version', ['selected' => 'settings'])<div class="card content-wrap auto-height"><h2 id="features" class="list-heading">{{ trans('settings.app_features_security') }}</h2>diff --git a/resources/views/settings/maintenance.blade.php b/resources/views/settings/maintenance.blade.phpindex 7311bbbe2..35686ca33 100644--- a/resources/views/settings/maintenance.blade.php+++ b/resources/views/settings/maintenance.blade.php@@ -3,16 +3,7 @@@section('body')<div class="container small">- <div class="grid left-focus v-center no-row-gap">- <div class="py-m">- @include('settings.navbar', ['selected' => 'maintenance'])- </div>- <div class="text-right p-m">- <a target="_blank" rel="noopener noreferrer" href="https://github.com/BookStackApp/BookStack/releases">- BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}- </a>- </div>- </div>+ @include('settings.navbar-with-version', ['selected' => 'maintenance'])<div id="image-cleanup" class="card content-wrap auto-height"><h2 class="list-heading">{{ trans('settings.maint_image_cleanup') }}</h2>diff --git a/resources/views/settings/navbar-with-version.blade.php b/resources/views/settings/navbar-with-version.blade.phpnew file mode 100644index 000000000..c02c370fe--- /dev/null+++ b/resources/views/settings/navbar-with-version.blade.php@@ -0,0 +1,15 @@+{{--+$selected - String name of the selected tab+$version - Version of bookstack to display+--}}+<div class="flex-container-row v-center wrap">+ <div class="py-m flex fit-content">+ @include('settings.navbar', ['selected' => $selected])+ </div>+ <div class="flex"></div>+ <div class="text-right p-m flex fit-content">+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/BookStackApp/BookStack/releases">+ BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}+ </a>+ </div>+</div>\ No newline at end of file