fix settings pop up not dismissing, center model dropdown menu in header, fix hover over user icon - Follow Up Deployment
Browse files- index.html +9 -2
index.html
CHANGED
|
@@ -61,7 +61,7 @@
|
|
| 61 |
</div>
|
| 62 |
|
| 63 |
<div class="flex items-center space-x-3">
|
| 64 |
-
<div class="relative">
|
| 65 |
<select id="modelSelect" class="bg-white dark:bg-dark-700 border border-gray-300 dark:border-dark-600 rounded-lg py-2 pl-3 pr-8 appearance-none focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 66 |
<!-- Options will be populated by JavaScript -->
|
| 67 |
</select>
|
|
@@ -349,7 +349,7 @@
|
|
| 349 |
elements.authBtn.addEventListener('mouseleave', (e) => {
|
| 350 |
// Delay hiding to allow moving to the card
|
| 351 |
setTimeout(() => {
|
| 352 |
-
if (!elements.userCard.matches(':hover')) {
|
| 353 |
elements.userCard.classList.add('hidden');
|
| 354 |
}
|
| 355 |
}, 100);
|
|
@@ -381,6 +381,13 @@
|
|
| 381 |
}
|
| 382 |
});
|
| 383 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
// Save settings
|
| 385 |
elements.saveSettings.addEventListener('click', () => {
|
| 386 |
saveSettings();
|
|
|
|
| 61 |
</div>
|
| 62 |
|
| 63 |
<div class="flex items-center space-x-3">
|
| 64 |
+
<div class="relative flex justify-center">
|
| 65 |
<select id="modelSelect" class="bg-white dark:bg-dark-700 border border-gray-300 dark:border-dark-600 rounded-lg py-2 pl-3 pr-8 appearance-none focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 66 |
<!-- Options will be populated by JavaScript -->
|
| 67 |
</select>
|
|
|
|
| 349 |
elements.authBtn.addEventListener('mouseleave', (e) => {
|
| 350 |
// Delay hiding to allow moving to the card
|
| 351 |
setTimeout(() => {
|
| 352 |
+
if (!elements.userCard.matches(':hover') && !elements.authBtn.matches(':hover')) {
|
| 353 |
elements.userCard.classList.add('hidden');
|
| 354 |
}
|
| 355 |
}, 100);
|
|
|
|
| 381 |
}
|
| 382 |
});
|
| 383 |
|
| 384 |
+
// Close settings when pressing Escape key
|
| 385 |
+
document.addEventListener('keydown', (e) => {
|
| 386 |
+
if (e.key === 'Escape' && !elements.settingsModal.classList.contains('hidden')) {
|
| 387 |
+
elements.settingsModal.classList.add('hidden');
|
| 388 |
+
}
|
| 389 |
+
});
|
| 390 |
+
|
| 391 |
// Save settings
|
| 392 |
elements.saveSettings.addEventListener('click', () => {
|
| 393 |
saveSettings();
|