Skip to content

Commit 3e2a3f7

Browse files
authored
Update fast-search-card.js
1 parent 901ba7c commit 3e2a3f7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

dist/fast-search-card.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ class FastSearchCard extends HTMLElement {
13501350
13511351
/* Mobile: History Tab spezifisches Padding */
13521352
@media (max-width: 768px) {
1353-
.detail-tab-content[data-tab-content="history"] #tab-content-container {
1353+
#tab-content-container.history-active {
13541354
padding: 0px 10px;
13551355
}
13561356
}
@@ -10116,6 +10116,17 @@ class FastSearchCard extends HTMLElement {
1011610116
tab.addEventListener('click', (e) => {
1011710117
e.preventDefault();
1011810118
const targetId = tab.dataset.tab;
10119+
10120+
// Tab-Content Container finden
10121+
const tabContainer = this.shadowRoot.querySelector('#tab-content-container');
10122+
10123+
// Alle history-spezifischen Klassen entfernen
10124+
tabContainer.classList.remove('history-active');
10125+
10126+
// Wenn History Tab geklickt wird, Klasse hinzufügen
10127+
if (targetId === 'history') {
10128+
tabContainer.classList.add('history-active');
10129+
}
1011910130

1012010131
// Sync beide Tab-Container
1012110132
[desktopTabsContainer, mobileTabsContainer].forEach(container => {

0 commit comments

Comments
 (0)