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

Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-09 08:22:34 +00:00
co-authored by cadtoolbox
parent 222179f187
commit e4ca5256de
7 changed files with 450 additions and 462 deletions
-12
View File
@@ -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
View File
@@ -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
View File
@@ -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 one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -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>