fix(admin): add toggle menu button for admin navigation (#462)
This commit is contained in:
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
:avatar="settings.avatar"
|
||||
/>
|
||||
<AppSearch
|
||||
v-if="showSearchForm"
|
||||
v-if="showSearchForm && open"
|
||||
v-model="search"
|
||||
/>
|
||||
<OpenerButton
|
||||
|
||||
@@ -29,6 +29,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/>
|
||||
</NcAppNavigation>
|
||||
<NcAppContent class="cm-settings cm-settings--nav">
|
||||
<button @click="toggleNav" class="cm-settings-nav-toggle">{{ trans('Toggle menu') }}</button>
|
||||
|
||||
<SettingsSection :hidden="section !== 'panel'">
|
||||
<SectionTitle label="Panel" />
|
||||
|
||||
@@ -628,6 +630,10 @@ const filterConfig = (value) => {
|
||||
return result
|
||||
}
|
||||
|
||||
const toggleNav = () => {
|
||||
document.querySelector('.cm-settings-nav .app-navigation-toggle-wrapper > button').click()
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
config.value = await configStore.getAppConfig()
|
||||
|
||||
|
||||
+16
-5
@@ -15,14 +15,25 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
.cm-settings {
|
||||
&--nav {
|
||||
padding-top: 30px;
|
||||
}
|
||||
.cm-settings-nav {
|
||||
padding-top: 30px !important;
|
||||
}
|
||||
|
||||
.cm-settings-nav-toggle {
|
||||
margin-top: 40px !important;
|
||||
margin-left: 15px !important;
|
||||
}
|
||||
|
||||
.cm-settings-nav .app-navigation-toggle-wrapper > button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.cm-settings {
|
||||
&-nav {
|
||||
max-width: 50vw !important;
|
||||
|
||||
.app-navigation__content {
|
||||
padding: 20px;
|
||||
padding: 20px 10px 20px 10px;
|
||||
}
|
||||
|
||||
.app-navigation-entry-icon {
|
||||
|
||||
Reference in New Issue
Block a user