diff --git a/assets/App.vue b/assets/App.vue
index 154c9b7f..4e5ed2c0 100644
--- a/assets/App.vue
+++ b/assets/App.vue
@@ -64,8 +64,25 @@ export default {
await this.fetchContainerList();
this.title = `${this.containers.length} containers`;
},
+ mounted() {
+ if (this.hasSmallerScrollbars) {
+ document.documentElement.classList.add("has-custom-scrollbars");
+ }
+ },
+ watch: {
+ hasSmallerScrollbars(newValue, oldValue) {
+ if (newValue) {
+ document.documentElement.classList.add("has-custom-scrollbars");
+ } else {
+ document.documentElement.classList.remove("has-custom-scrollbars");
+ }
+ }
+ },
computed: {
- ...mapState(["containers", "activeContainers", "isMobile", "settings"])
+ ...mapState(["containers", "activeContainers", "isMobile", "settings"]),
+ hasSmallerScrollbars() {
+ return this.settings.smallerScrollbars;
+ }
},
methods: {
...mapActions({
diff --git a/assets/pages/Settings.vue b/assets/pages/Settings.vue
index e6ed3d9e..145eaba3 100644
--- a/assets/pages/Settings.vue
+++ b/assets/pages/Settings.vue
@@ -26,11 +26,16 @@
-
Font size
+
+ Use smaller scrollbars
+
+
+
+
Font size
Modify the font size when viewing logs.
-
-
+
+