Skip to content

Commit bbd0798

Browse files
authored
Update fast-search-card.js
1 parent 72b94ac commit bbd0798

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

dist/fast-search-card.js

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5148,7 +5148,7 @@ class FastSearchCard extends HTMLElement {
51485148
}
51495149

51505150
hideCategoryButtons() {
5151-
// NEU: Search-Wrapper wieder anzeigen
5151+
// Mobile: Search-Wrapper wieder anzeigen
51525152
if (this.isMobile()) {
51535153
const searchWrapper = this.shadowRoot.querySelector('.search-panel');
51545154
if (searchWrapper) {
@@ -5159,8 +5159,27 @@ class FastSearchCard extends HTMLElement {
51595159
const categoryButtons = this.shadowRoot.querySelector('.category-buttons');
51605160
if (!this.isMenuView) return;
51615161

5162-
// 🌊 REVERSE RIPPLE EFFECT
5163-
this.animateRippleOut(categoryButtons);
5162+
// ✅ SOFORT AUSBLENDEN ohne Animation
5163+
categoryButtons.classList.remove('visible');
5164+
this.isMenuView = false;
5165+
5166+
// ✅ ALLE STYLES ZURÜCKSETZEN
5167+
const buttons = categoryButtons?.querySelectorAll('.category-button');
5168+
if (categoryButtons) {
5169+
categoryButtons.style.opacity = '';
5170+
categoryButtons.style.transform = '';
5171+
categoryButtons.style.display = '';
5172+
}
5173+
if (buttons) {
5174+
buttons.forEach(button => {
5175+
button.style.opacity = '';
5176+
button.style.transform = '';
5177+
button.style.filter = '';
5178+
});
5179+
}
5180+
5181+
// ✅ PANEL WIEDER ERWEITERN
5182+
this.expandPanel();
51645183
}
51655184

51665185
handleCategorySelect(selectedButton) {

0 commit comments

Comments
 (0)