Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Give dialog descriptions full width and restructure the open poll limit dialog (#3519)
Luke Vellab4b207c019bf
diff --git a/apps/web/src/features/poll/limit/components/open-poll-limit-dialog.tsx b/apps/web/src/features/poll/limit/components/open-poll-limit-dialog.tsxindex 95e06baf7..7be065b7a 100644--- a/apps/web/src/features/poll/limit/components/open-poll-limit-dialog.tsx+++ b/apps/web/src/features/poll/limit/components/open-poll-limit-dialog.tsx@@ -12,12 +12,10 @@ import {DialogTitle,useDialog,} from "@rallly/ui/dialog";-import { BarChart2Icon } from "lucide-react";import { usePathname } from "next/navigation";import React from "react";import { Link } from "@/components/link";import { LoginLink } from "@/components/login-link";-import { PageIcon } from "@/components/page-icons";import { primePayWall, usePayWallStore } from "@/features/billing/client";import { PayWallDialog } from "@/features/billing/components/pay-wall-dialog";import { PLAN_NAMES } from "@/features/billing/constants";@@ -61,7 +59,7 @@ export function OpenPollLimitDialog() {}}}>- <DialogContent size="md" showCloseButton={dismissible}>+ <DialogContent size="lg" showCloseButton={dismissible}>{content ? (<OpenPollLimitContent source={content.source} usage={content.usage} />) : null}@@ -99,18 +97,13 @@ function OpenPollLimitContent({return (<><DialogHeader>- <div className="flex items-center gap-3">- <PageIcon size="sm" color="primary">- <BarChart2Icon />- </PageIcon>- <DialogTitle>- <Trans- i18nKey="openPollLimitReachedTitle"- defaults="Open poll limit reached"- />- </DialogTitle>- </div>- <DialogDescription className="mt-2">+ <DialogTitle className="font-semibold text-lg">+ <Trans+ i18nKey="openPollLimitReachedTitle"+ defaults="Open poll limit reached"+ />+ </DialogTitle>+ <DialogDescription className="mt-1">{data.tier === "guest" ? (<Transi18nKey="openPollLimitGuestDescription"diff --git a/packages/ui/src/dialog.tsx b/packages/ui/src/dialog.tsxindex 44db13bc5..ca652d9ca 100644--- a/packages/ui/src/dialog.tsx+++ b/packages/ui/src/dialog.tsx@@ -85,6 +85,7 @@ function DialogContent({<DialogPrimitive.Popupdata-slot="dialog-content"className={cn(dialogVariants({ size }), className)}+ data-close-button={showCloseButton ? "" : undefined}{...props}><div@@ -109,7 +110,9 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {<divdata-slot="dialog-header"className={cn(- "dialog-edge:sticky dialog-edge:-top-4 dialog-edge:z-10 dialog-edge:-mx-4 dialog-edge:-mt-4 dialog-edge:bg-popover dialog-edge:px-4 dialog-edge:pt-4 dialog-edge:pr-12 dialog-edge:pb-2",+ "dialog-edge:sticky dialog-edge:-top-4 dialog-edge:z-10 dialog-edge:-mx-4 dialog-edge:-mt-4 dialog-edge:bg-popover dialog-edge:px-4 dialog-edge:pt-4 dialog-edge:pb-2",+ // Only the first row sits beside the close button.+ "dialog-edge:in-data-close-button:*:first:pr-8",className,)}{...props}