Browse Source

Fix admin settings menu vertical scroll and user creation dialog for advanced auth

Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com>
copilot-swe-agent[bot] 3 months ago
parent
commit
e4ca5256de

+ 0 - 12
frontend/package-lock.json

@@ -1204,18 +1204,6 @@
         "@floating-ui/utils": "^0.2.10"
       }
     },
-    "node_modules/@floating-ui/dom": {
-      "version": "1.7.5",
-      "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.5.tgz",
-      "integrity": "sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg==",
-      "license": "MIT",
-      "optional": true,
-      "peer": true,
-      "dependencies": {
-        "@floating-ui/core": "^1.7.4",
-        "@floating-ui/utils": "^0.2.10"
-      }
-    },
     "node_modules/@floating-ui/utils": {
       "version": "0.2.10",
       "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.10.tgz",

+ 1 - 1
frontend/src/pages/SettingsPage.tsx

@@ -918,7 +918,7 @@ export function SettingsPage() {
       </div>
 
       {/* Tab Navigation */}
-      <div className="flex gap-1 mb-6 border-b border-bambu-dark-tertiary overflow-x-auto">
+      <div className="flex flex-wrap gap-1 mb-6 border-b border-bambu-dark-tertiary overflow-y-auto max-h-32">
         <button
           onClick={() => handleTabChange('general')}
           className={`px-4 py-2 text-sm font-medium transition-colors border-b-2 -mb-px ${

+ 1 - 1
frontend/src/pages/UsersPage.tsx

@@ -527,7 +527,7 @@ export function UsersPage() {
                 </Button>
                 <Button
                   onClick={handleCreate}
-                  disabled={createMutation.isPending || !formData.username || !formData.password || formData.password !== formData.confirmPassword || formData.password.length < 6}
+                  disabled={createMutation.isPending || !formData.username || (advancedAuthStatus?.advanced_auth_enabled ? !formData.email : (!formData.password || formData.password !== formData.confirmPassword || formData.password.length < 6))}
                 >
                   {createMutation.isPending ? (
                     <>

File diff suppressed because it is too large
+ 0 - 0
static/assets/index-962x7uln.css


File diff suppressed because it is too large
+ 0 - 0
static/assets/index-BXuLn30-.js


File diff suppressed because it is too large
+ 0 - 0
static/assets/index-e6thg2aZ.css


+ 2 - 2
static/index.html

@@ -23,8 +23,8 @@
 
     <!-- Splash screens for iOS -->
     <link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
-    <script type="module" crossorigin src="/assets/index-DywTesim.js"></script>
-    <link rel="stylesheet" crossorigin href="/assets/index-962x7uln.css">
+    <script type="module" crossorigin src="/assets/index-BXuLn30-.js"></script>
+    <link rel="stylesheet" crossorigin href="/assets/index-e6thg2aZ.css">
   </head>
   <body>
     <div id="root"></div>

Some files were not shown because too many files changed in this diff