mirror of
https://github.com/go-sigma/sigma.git
synced 2026-10-28 14:34:34 +08:00
fix(web): keep namespace form select popups at trigger width
Drop the shared minimum popup width on the create and update namespace visibility and size-limit unit selects so each popup matches its trigger. Verification: - web: `npx tsc --noEmit`, `npx oxlint`, `npx vite build`
This commit is contained in:
1 parent
f4ccd565f6
commit
2a61be0cbf
1 file changed
+5
-5
@@ -189,7 +189,7 @@ export default function Namespace({ localServer }: { localServer: string }) {
|
||||
setUserObj(response.data as IUserSelf);
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
}, [localServer]);
|
||||
|
||||
const createNamespace = () => {
|
||||
@@ -434,7 +434,7 @@ export default function Namespace({ localServer }: { localServer: string }) {
|
||||
<SelectTrigger>
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectContent className="min-w-0">
|
||||
<SelectItem value="private">Private</SelectItem>
|
||||
<SelectItem value="public">Public</SelectItem>
|
||||
</SelectContent>
|
||||
@@ -466,7 +466,7 @@ export default function Namespace({ localServer }: { localServer: string }) {
|
||||
<SelectTrigger className="w-20">
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectContent className="min-w-0">
|
||||
<SelectItem value="MiB">MiB</SelectItem>
|
||||
<SelectItem value="GiB">GiB</SelectItem>
|
||||
<SelectItem value="TiB">TiB</SelectItem>
|
||||
@@ -755,7 +755,7 @@ function TableItem({
|
||||
<SelectTrigger>
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectContent className="min-w-0">
|
||||
<SelectItem value="private">Private</SelectItem>
|
||||
<SelectItem value="public">Public</SelectItem>
|
||||
</SelectContent>
|
||||
@@ -787,7 +787,7 @@ function TableItem({
|
||||
<SelectTrigger className="w-20">
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectContent className="min-w-0">
|
||||
<SelectItem value="MiB">MiB</SelectItem>
|
||||
<SelectItem value="GiB">GiB</SelectItem>
|
||||
<SelectItem value="TiB">TiB</SelectItem>
|
||||
|
||||
Reference in new issue
Block a user