File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -4354,13 +4354,19 @@ class FastSearchCard extends HTMLElement {
43544354 if (this.isMenuView) { this.hideCategoryButtons(); } else { this.showCategoryButtons(); }
43554355 }
43564356
4357+ isMobile() {
4358+ return window.innerWidth <= 768;
4359+ }
4360+
43574361 showCategoryButtons() {
43584362 this.collapsePanel(); // <-- HINZUGEFÜGTE ZEILE
43594363
43604364 // NEU: Search-Wrapper auf Mobile verstecken
4361- const searchWrapper = this.shadowRoot.querySelector('.search-wrapper');
4362- if (searchWrapper) {
4363- searchWrapper.style.display = 'none';
4365+ if (this.isMobile()) {
4366+ const searchWrapper = this.shadowRoot.querySelector('.search-wrapper');
4367+ if (searchWrapper) {
4368+ searchWrapper.style.display = 'none';
4369+ }
43644370 }
43654371
43664372 const categoryButtons = this.shadowRoot.querySelector('.category-buttons');
@@ -4370,11 +4376,13 @@ class FastSearchCard extends HTMLElement {
43704376 }
43714377
43724378 hideCategoryButtons() {
4373- // NEU: Search-Wrapper wieder anzeigen
4374- const searchWrapper = this.shadowRoot.querySelector('.search-wrapper');
4375- if (searchWrapper) {
4376- searchWrapper.style.display = 'flex';
4377- }
4379+ // NEU: Search-Wrapper wieder anzeigen
4380+ if (this.isMobile()) {
4381+ const searchWrapper = this.shadowRoot.querySelector('.search-wrapper');
4382+ if (searchWrapper) {
4383+ searchWrapper.style.display = 'flex';
4384+ }
4385+ }
43784386
43794387 const categoryButtons = this.shadowRoot.querySelector('.category-buttons');
43804388 if (!this.isMenuView) return;
You can’t perform that action at this time.
0 commit comments