diff --git a/src/components/charts/TempChart.vue b/src/components/charts/TempChart.vue
index ffd91368..bb4c994a 100644
--- a/src/components/charts/TempChart.vue
+++ b/src/components/charts/TempChart.vue
@@ -5,7 +5,8 @@
:option="chartOptions"
:init-options="{ renderer: 'svg' }"
:autoresize="true"
- style="height: 250px; width: 100%">
+ :style="tempchartStyle"
+ class="tempchart" />
+
+
diff --git a/src/components/settings/SettingsUiSettingsTab.vue b/src/components/settings/SettingsUiSettingsTab.vue
index d9b216ca..418775b6 100644
--- a/src/components/settings/SettingsUiSettingsTab.vue
+++ b/src/components/settings/SettingsUiSettingsTab.vue
@@ -13,7 +13,7 @@
-
+
-
+
-
+
+ @update:color="updatePrimaryColor" />
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+ hide-spin-buttons />
-
+
-
+
-
+
-
+
-
+
@@ -126,14 +126,14 @@
class="mt-0"
hide-details
outlined
- dense>
+ dense />
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
@@ -381,6 +393,14 @@ export default class SettingsUiSettingsTab extends Mixins(BaseMixin) {
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolScrewsTiltAdjustDialog', value: newVal })
}
+ get tempchartHeight() {
+ return this.$store.state.gui.uiSettings.tempchartHeight ?? 250
+ }
+
+ set tempchartHeight(newVal) {
+ this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.tempchartHeight', value: newVal })
+ }
+
clearColorObject(color: any): string {
if (typeof color === 'object' && 'hex' in color) color = color.hex
if (color.length > 7) color = color.substr(0, 7)
diff --git a/src/locales/de.json b/src/locales/de.json
index 39dc605a..6c3182cf 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -1041,6 +1041,8 @@
"PowerDeviceNameDescription": "Wähle aus, welches Moonraker Power-Device zum Einschalten des Druckers verwendet werden soll.",
"Primary": "Primärfarbe",
"ShowWebcamInNavigation": "Zeige Webcam in der Navigation",
+ "TempchartHeight": "Temperatur-Chart Höhe",
+ "TempchartHeightDescription": "Verändert die Höhe vom Temperatur-Chart auf dem Dashboard.",
"UiSettings": "UI-Einstellungen"
},
"Update": "speichern",
diff --git a/src/locales/en.json b/src/locales/en.json
index 3884b215..529d5095 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -1055,6 +1055,8 @@
"ScrewsTiltAdjustDialog": "Screws Tilt Adjust Dialog",
"ScrewsTiltAdjustDialogDescription": "Display helper dialog for SCREWS_TILT_CALCULATE.",
"ShowWebcamInNavigation": "Show Webcam in navigation",
+ "TempchartHeight": "Height Temperature Chart",
+ "TempchartHeightDescription": "Modify the height of the temperature chart on the Dashboard.",
"UiSettings": "UI-Settings"
},
"Update": "update",
diff --git a/src/store/gui/index.ts b/src/store/gui/index.ts
index 29e7ad9d..74fa1004 100644
--- a/src/store/gui/index.ts
+++ b/src/store/gui/index.ts
@@ -164,6 +164,7 @@ export const getDefaultState = (): GuiState => {
boolManualProbeDialog: true,
boolBedScrewsDialog: true,
boolScrewsTiltAdjustDialog: true,
+ tempchartHeight: 250,
},
view: {
blockFileUpload: false,
diff --git a/src/store/gui/types.ts b/src/store/gui/types.ts
index 172b9183..d818af04 100644
--- a/src/store/gui/types.ts
+++ b/src/store/gui/types.ts
@@ -114,6 +114,7 @@ export interface GuiState {
boolManualProbeDialog: boolean
boolBedScrewsDialog: boolean
boolScrewsTiltAdjustDialog: boolean
+ tempchartHeight: number
}
view: {
blockFileUpload: boolean