Skip to content

Commit b914cad

Browse files
authored
fix: ui mobile version
1 parent dc0c738 commit b914cad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/app/plans/_components/share-plan-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function SharePlanButton({ plan }: { plan: PlanState }) {
6161

6262
return (
6363
<div className="flex items-center gap-2 rounded-full border bg-background/50 p-1">
64-
<p className="pl-2 font-mono">
64+
<p className="hidden truncate pl-2 md:block">
6565
{env.NEXT_PUBLIC_API_URL.includes("localhost")
6666
? "http://localhost:3000"
6767
: "https://planer.solvro.pl"}

frontend/src/app/plans/edit/[id]/page.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,15 @@ export function CreateNewPlanPage({
507507
</div>
508508

509509
<Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>
510-
<DialogContent className="w-full md:max-w-[1620px]">
510+
<DialogContent className="h-full max-h-[90%] w-full md:max-w-[1620px]">
511511
<DialogHeader>
512512
<DialogTitle>Udostępnij swój plan</DialogTitle>
513513
<DialogDescription className="text-balance">
514514
Możesz udostępnij link do swojego planu, aby inni mogli go
515515
zobaczyć lub pobrać w formacie .png
516516
</DialogDescription>
517517
</DialogHeader>
518-
<div className="relative max-h-[700px] overflow-y-auto">
518+
<div className="relative h-full max-h-[700px] overflow-y-auto">
519519
<div
520520
ref={captureRef}
521521
className="relative flex flex-col gap-2 bg-background p-1"
@@ -586,7 +586,7 @@ export function CreateNewPlanPage({
586586
initial={{ opacity: 0, y: -30 }}
587587
animate={{ opacity: 100, y: 0 }}
588588
exit={{ opacity: 0, y: -30 }}
589-
className="absolute bottom-6 right-8 z-20 flex items-center gap-2 rounded-full border bg-background/50 px-3 py-2 shadow-md backdrop-blur-[12px]"
589+
className="absolute bottom-6 right-8 z-20 flex flex-col items-center gap-2 rounded-xl border bg-background/50 px-3 py-2 shadow-md backdrop-blur-[12px] md:flex-row md:rounded-full"
590590
>
591591
<DownloadPlanButton plan={plan} captureRef={captureRef} />
592592

0 commit comments

Comments
 (0)