|
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> |
6 | 6 | <title>Omit needless words</title> |
7 | 7 | <style> |
8 | 8 | * { |
|
326 | 326 | background: white; |
327 | 327 | cursor: pointer; |
328 | 328 | transition: border-color 0.2s; |
| 329 | + -webkit-appearance: none; |
| 330 | + -moz-appearance: none; |
| 331 | + appearance: none; |
329 | 332 | } |
330 | 333 |
|
331 | 334 | select:focus { |
|
370 | 373 | border-radius: 6px; |
371 | 374 | resize: vertical; |
372 | 375 | line-height: 1.5; |
| 376 | + -webkit-appearance: none; |
| 377 | + -moz-appearance: none; |
| 378 | + appearance: none; |
373 | 379 | } |
374 | 380 |
|
375 | 381 | .prompt-textarea:focus { |
@@ -583,16 +589,17 @@ <h1>Omit needless words</h1> |
583 | 589 | function updatePromptBanner() { |
584 | 590 | const savedCustomPrompt = localStorage.getItem('omit-needless-words-custom-prompt'); |
585 | 591 |
|
586 | | - if (useCustomPrompt && savedCustomPrompt) { |
587 | | - // Using custom prompt |
| 592 | + if (savedCustomPrompt) { |
588 | 593 | customPromptBanner.classList.remove('hidden'); |
589 | | - promptBannerText.textContent = 'Running with a custom system prompt'; |
590 | | - togglePromptBtn.textContent = 'Use default prompt'; |
591 | | - } else if (!useCustomPrompt && savedCustomPrompt) { |
592 | | - // Using default but have a saved custom prompt available |
593 | | - customPromptBanner.classList.remove('hidden'); |
594 | | - promptBannerText.textContent = 'Using default prompt (custom prompt saved)'; |
595 | | - togglePromptBtn.textContent = 'Use custom prompt'; |
| 594 | + if (useCustomPrompt) { |
| 595 | + // Using custom prompt |
| 596 | + promptBannerText.textContent = 'Running with a custom system prompt'; |
| 597 | + togglePromptBtn.textContent = 'Use default prompt'; |
| 598 | + } else { |
| 599 | + // Using default but have a saved custom prompt available |
| 600 | + promptBannerText.textContent = 'Using default prompt (custom prompt saved)'; |
| 601 | + togglePromptBtn.textContent = 'Use custom prompt'; |
| 602 | + } |
596 | 603 | } else { |
597 | 604 | // No custom prompt saved |
598 | 605 | customPromptBanner.classList.add('hidden'); |
|
0 commit comments