diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b6076b..3232fa2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Generate OpenAPI spec and API HTML docs - Fully auto‑generated OpenAPI spec (`openapi.json`) and interactive HTML docs (`api.html`) powered by Redoc. - .gitattributes added to mark (`openapi.json`) & (`api.html`) as documentation. +- User Panel added API Docs link. --- diff --git a/public/js/authModals.js b/public/js/authModals.js index 8e2b774..e529e1a 100644 --- a/public/js/authModals.js +++ b/public/js/authModals.js @@ -166,105 +166,112 @@ export function openUserPanel() { border-radius: 8px; position: fixed; overflow-y: auto; - max-height: 350px !important; + max-height: 400px !important; border: ${isDarkMode ? "1px solid #444" : "1px solid #ccc"}; transform: none; transition: none; `; - // Retrieve the language setting from local storage, default to English ("en") const savedLanguage = localStorage.getItem("language") || "en"; + if (!userPanelModal) { userPanelModal = document.createElement("div"); userPanelModal.id = "userPanelModal"; userPanelModal.style.cssText = ` - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - background-color: ${overlayBackground}; - display: flex; - justify-content: center; - align-items: center; - z-index: 3000; - `; + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background-color: ${overlayBackground}; + display: flex; + justify-content: center; + align-items: center; + z-index: 3000; + `; userPanelModal.innerHTML = ` -