diff --git a/src/ui.js b/src/ui.js index 5b9e97f..ff0a0ed 100644 --- a/src/ui.js +++ b/src/ui.js @@ -1338,10 +1338,7 @@ export function openTTSModal() { if (USE_CUSTOM_STYLING) { modal.style.cssText += ` - width: 90vw; max-width: 720px; - height: auto; - max-height: 80vh; top: 50%; left: 50%; transform: translate(-50%, -50%); @@ -1350,21 +1347,14 @@ export function openTTSModal() { box-shadow: 0 4px 8px rgba(0,0,0,0.2); background: white; margin: 0; - padding: 0; - overflow: auto; `; } else { modal.style.cssText += ` - width: 90vw; max-width: 720px; - height: auto; - max-height: 80vh; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; - padding: 0; - overflow: auto; `; } @@ -1617,10 +1607,7 @@ export function openTranslateModal() { if (USE_CUSTOM_STYLING) { modal.style.cssText += ` - width: 90vw; max-width: 720px; - height: 80vh; - max-height: 600px; top: 50%; left: 50%; transform: translate(-50%, -50%); @@ -1629,21 +1616,14 @@ export function openTranslateModal() { box-shadow: 0 4px 8px rgba(0,0,0,0.2); background: white; margin: 0; - padding: 0; - overflow: auto; `; } else { modal.style.cssText += ` - width: 90vw; max-width: 720px; - height: 80vh; - max-height: 600px; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; - padding: 0; - overflow: auto; `; }