样式修改
This commit is contained in:
1 parent
f3ca996116
commit
c48317672c
1 file changed
+9
-1
@@ -27,6 +27,7 @@ import {
|
|||||||
DialogHeader,
|
DialogHeader,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
} from "@/components/ui/dialog";
|
} from "@/components/ui/dialog";
|
||||||
|
import { isWujieEnv } from "@/core/embed/wujie";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
import { listChains, setChainPublic, type ChainScope } from "../api/chains";
|
import { listChains, setChainPublic, type ChainScope } from "../api/chains";
|
||||||
@@ -187,8 +188,15 @@ export function BusinessChainListDialog({
|
|||||||
onOpenChange,
|
onOpenChange,
|
||||||
onConfigure,
|
onConfigure,
|
||||||
}: BusinessChainListDialogProps) {
|
}: BusinessChainListDialogProps) {
|
||||||
|
const inWujie = isWujieEnv();
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
<Dialog
|
||||||
|
open={open}
|
||||||
|
onOpenChange={onOpenChange}
|
||||||
|
// Wujie 内部容器场景下,Radix modal 的 body-scroll-lock 可能计算出异常
|
||||||
|
// margin-right,导致右侧出现大片空白。这里降为 non-modal 规避布局抖动。
|
||||||
|
modal={!inWujie}
|
||||||
|
>
|
||||||
<DialogContent className="flex max-h-[85vh] flex-col gap-0 sm:max-w-2xl">
|
<DialogContent className="flex max-h-[85vh] flex-col gap-0 sm:max-w-2xl">
|
||||||
<DialogHeader className="shrink-0">
|
<DialogHeader className="shrink-0">
|
||||||
<DialogTitle className="flex items-center gap-2">
|
<DialogTitle className="flex items-center gap-2">
|
||||||
|
|||||||
Reference in new issue
Block a user