@@ -241,7 +246,6 @@ export default {
{ label: "Archives", value: "type:archive" },
],
value: "",
- width: window.innerWidth,
ongoing: false,
results: [],
reload: false,
@@ -299,7 +303,8 @@ export default {
return this.isTypeSelectDisabled;
},
active() {
- return getters.currentPromptName() === "search";
+ console.log("calling active ", getters.currentPromptName());
+ return getters.currentPromptName() == "search";
},
showOverlay() {
return getters.currentPrompt() !== null && getters.currentPromptName() !== "more";
@@ -342,11 +347,7 @@ export default {
return path;
},
},
-
methods: {
- handleResize() {
- this.width = window.innerWidth;
- },
async navigateTo(url) {
mutations.closeHovers();
await this.$nextTick();
@@ -403,7 +404,7 @@ export default {
return false;
}
this.searchTypes = this.searchTypes.replace(string + " ", "");
- if (this.isMobile) {
+ if (state.isMobile) {
this.$refs.input.focus();
}
},
@@ -447,12 +448,6 @@ export default {
this.showHelp = !this.showHelp;
},
},
- mounted() {
- window.addEventListener("resize", this.handleResize);
- },
- beforeUnmount() {
- window.removeEventListener("resize", this.handleResize);
- },
};
diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue
index d2c80d68..99b889c3 100644
--- a/frontend/src/components/Sidebar.vue
+++ b/frontend/src/components/Sidebar.vue
@@ -4,45 +4,49 @@
:class="{ active: active, 'dark-mode': isDarkMode, sticky: user?.stickySidebar }"
>
-
+
+
+
-
-
-
{{ hoverText }}
-
-
- ads_click
-
-
- dark_mode
-
-
-
push_pin
+
+
+
{{ hoverText }}
+
+
+ ads_click
+
+
+ dark_mode
+
+
+ push_pin
+
-
+