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