📱 fix: Fixed the height issue of adding account dialog on mobile.
This commit is contained in:
parent
d83500cf1b
commit
6fced7be27
1 changed files with 115 additions and 110 deletions
|
|
@ -185,7 +185,7 @@ export function AccountDialog({
|
||||||
<DialogTrigger asChild>{children}</DialogTrigger>
|
<DialogTrigger asChild>{children}</DialogTrigger>
|
||||||
<DialogContent
|
<DialogContent
|
||||||
aria-describedby={undefined}
|
aria-describedby={undefined}
|
||||||
className="relative h-full w-full pb-10 md:h-auto md:min-h-40 md:min-w-[550px]"
|
className="h-full w-full pb-10 md:h-auto md:min-h-40 md:min-w-[550px]"
|
||||||
>
|
>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle className="flex items-center gap-2">
|
<DialogTitle className="flex items-center gap-2">
|
||||||
|
|
@ -195,6 +195,7 @@ export function AccountDialog({
|
||||||
</p>
|
</p>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
<div className="relative h-full w-full">
|
||||||
{!debounceIsCreateMutating && !initSuccessfully && (
|
{!debounceIsCreateMutating && !initSuccessfully && (
|
||||||
<div className="flex flex-col items-center justify-center space-y-4">
|
<div className="flex flex-col items-center justify-center space-y-4">
|
||||||
<Button
|
<Button
|
||||||
|
|
@ -291,7 +292,10 @@ export function AccountDialog({
|
||||||
{authState && (
|
{authState && (
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
className={cn("w-full", isMethodExecuting ? "opacity-50" : "")}
|
className={cn(
|
||||||
|
"w-full",
|
||||||
|
isMethodExecuting ? "opacity-50" : "",
|
||||||
|
)}
|
||||||
disabled={isMethodExecuting}
|
disabled={isMethodExecuting}
|
||||||
>
|
>
|
||||||
{isMethodExecuting ? (
|
{isMethodExecuting ? (
|
||||||
|
|
@ -310,6 +314,7 @@ export function AccountDialog({
|
||||||
enableSelect={true}
|
enableSelect={true}
|
||||||
className="absolute bottom-1 right-1"
|
className="absolute bottom-1 right-1"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue