Skip to content

Commit b73f1bc

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

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dist/fast-search-card.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,9 @@ class FastSearchCard extends HTMLElement {
13531353
#tab-content-container.history-active {
13541354
padding: 0px 10px;
13551355
}
1356+
#tab-content-container.shortcuts-active {
1357+
padding: 0px 10px;
1358+
}
13561359
}
13571360
13581361
.icon-content {
@@ -10121,11 +10124,13 @@ class FastSearchCard extends HTMLElement {
1012110124
const tabContainer = this.shadowRoot.querySelector('#tab-content-container');
1012210125

1012310126
// Alle history-spezifischen Klassen entfernen
10124-
tabContainer.classList.remove('history-active');
10125-
10126-
// Wenn History Tab geklickt wird, Klasse hinzufügen
10127+
tabContainer.classList.remove('history-active', 'shortcuts-active');
10128+
10129+
// Entsprechende Klasse hinzufügen
1012710130
if (targetId === 'history') {
1012810131
tabContainer.classList.add('history-active');
10132+
} else if (targetId === 'shortcuts') {
10133+
tabContainer.classList.add('shortcuts-active');
1012910134
}
1013010135

1013110136
// Sync beide Tab-Container

0 commit comments

Comments
 (0)