From 88409b93753fe45983b143867678e010c19a3830 Mon Sep 17 00:00:00 2001 From: Zeanon Date: Thu, 27 Jul 2023 15:15:11 +0200 Subject: [PATCH] Fixes and stuff --- package-lock.json | 4 +- package.json | 2 +- src/App.vue | 75 ++++++----- src/components/TheSidebar.vue | 10 +- src/components/TheTopbar.vue | 45 +++++-- src/components/inputs/CheckboxList.vue | 67 ++++++++++ src/components/panels/GcodefilesPanel.vue | 54 +++++++- .../panels/Machine/UpdatePanel/Entry.vue | 18 ++- .../Temperature/TemperaturePanelListItem.vue | 4 +- .../panels/ToolheadControlPanel.vue | 11 +- .../settings/SettingsControlTab.vue | 13 ++ .../settings/SettingsGeneralTab.vue | 107 ++++++++-------- src/components/settings/SettingsRow.vue | 5 +- .../settings/SettingsUiSettingsTab.vue | 119 ++++++++++++------ src/locales/de.json | 6 + src/locales/en.json | 9 +- src/locales/fr.json | 3 +- src/plugins/build-release_info.ts | 2 +- src/store/gui/index.ts | 2 + src/store/gui/types.ts | 2 + src/store/mutations.ts | 1 + 21 files changed, 398 insertions(+), 161 deletions(-) create mode 100644 src/components/inputs/CheckboxList.vue diff --git a/package-lock.json b/package-lock.json index 82137c852..645369d10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mainsail", - "version": "2.6.1", + "version": "2.6.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mainsail", - "version": "2.6.1", + "version": "2.6.8", "dependencies": { "@codemirror/commands": "^6.0.1", "@codemirror/lang-css": "^6.0.0", diff --git a/package.json b/package.json index 2f6b3c339..b4ade5e5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mainsail", - "version": "2.6.7", + "version": "2.6.9", "private": true, "decription": "a klipper web interface", "author": { diff --git a/src/App.vue b/src/App.vue index 190bae95a..36e3d0dd8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,37 +1,11 @@ - - @@ -105,13 +79,26 @@ export default class App extends Mixins(BaseMixin) { return this.$store.getters['files/getMainBackground'] } + get naviDrawer(): boolean { + return this.$store.state.naviDrawer + } + get navigationStyle() { + return this.$store.state.gui.uiSettings.navigationStyle + } + get mainStyle() { - let style = '' + let style: any = { + paddingLeft: '0', + } if (this.mainBackground !== null) { - style = 'background-image: url(' + this.mainBackground + ');' + style.backgroundImage = 'url(' + this.mainBackground + ')' } + // overwrite padding left for the sidebar + if (this.naviDrawer && this.navigationStyle === 'iconsAndText') style.paddingLeft = '220px' + if (this.naviDrawer && this.navigationStyle === 'iconsOnly') style.paddingLeft = '56px' + return style } @@ -316,3 +303,25 @@ export default class App extends Mixins(BaseMixin) { } } + + diff --git a/src/components/TheSidebar.vue b/src/components/TheSidebar.vue index 8050321b2..6be678c99 100644 --- a/src/components/TheSidebar.vue +++ b/src/components/TheSidebar.vue @@ -1,7 +1,7 @@