From 2eec4ebafd7c5a48e064ab18d86ff7e4e0d32613 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Wed, 12 Nov 2025 18:55:25 +0300 Subject: [PATCH] [feature] Add close button to mobile menu; remove input max-width in mobile --- .../src/components/Input/Input.module.scss | 6 ++ AdminPanel/client/src/components/Menu/Menu.js | 7 ++- .../src/components/Menu/Menu.module.scss | 59 ++++++++++++++++++- .../components/MobileHeader/MobileHeader.js | 2 +- .../src/pages/WOPISettings/WOPISettings.js | 2 - .../WOPISettings/WOPISettings.module.scss | 10 ++-- 6 files changed, 72 insertions(+), 14 deletions(-) diff --git a/AdminPanel/client/src/components/Input/Input.module.scss b/AdminPanel/client/src/components/Input/Input.module.scss index 00fb6488..5182b206 100644 --- a/AdminPanel/client/src/components/Input/Input.module.scss +++ b/AdminPanel/client/src/components/Input/Input.module.scss @@ -63,3 +63,9 @@ color: #dc3545; margin-top: 4px; } + +@media (max-width: 767px) { + .input { + max-width: 100%; + } +} diff --git a/AdminPanel/client/src/components/Menu/Menu.js b/AdminPanel/client/src/components/Menu/Menu.js index 7bec8add..b51e1f5e 100644 --- a/AdminPanel/client/src/components/Menu/Menu.js +++ b/AdminPanel/client/src/components/Menu/Menu.js @@ -38,15 +38,16 @@ function Menu({isOpen, onClose}) { return (
-
+
@@ -156,7 +155,6 @@ function WOPISettings() { value={maskKey(wopiPublicKey)} disabled placeholder='No key generated' - width='400px' style={{fontFamily: 'Courier New, monospace'}} />
diff --git a/AdminPanel/client/src/pages/WOPISettings/WOPISettings.module.scss b/AdminPanel/client/src/pages/WOPISettings/WOPISettings.module.scss index 8a5634d2..3b7e49b3 100644 --- a/AdminPanel/client/src/pages/WOPISettings/WOPISettings.module.scss +++ b/AdminPanel/client/src/pages/WOPISettings/WOPISettings.module.scss @@ -42,11 +42,11 @@ } .formRow { - margin-bottom: 16px; - display: flex; - align-items: flex-end; - gap: 16px; - flex-wrap: wrap; + margin-bottom: 24px; + + &:last-child { + margin-bottom: 0; + } } // Ensure SaveButton aligns properly in form row