Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Fix paywall dialog mobile width (#1675)

Luke Vellae5e30f00b8fb
diff --git a/apps/web/src/app/[locale]/new/page.tsx b/apps/web/src/app/[locale]/new/page.tsx
index 4bbf9c08a..aa5d71ee4 100644
--- a/apps/web/src/app/[locale]/new/page.tsx
+++ b/apps/web/src/app/[locale]/new/page.tsx
@@ -24,7 +24,7 @@ export default async function Page({ params }: { params: Params }) {
</div>
<div className="flex flex-1 sm:justify-center">
<div className="flex items-center gap-x-2">
- <PollPageIcon />
+ <PollPageIcon size="sm" />
<div className="flex items-baseline gap-x-8">
<h1 className="font-semibold">
<Trans t={t} i18nKey="poll" defaults="Poll" />
diff --git a/apps/web/src/components/pay-wall-dialog.tsx b/apps/web/src/components/pay-wall-dialog.tsx
index cb37c0923..3dd7a2123 100644
--- a/apps/web/src/components/pay-wall-dialog.tsx
+++ b/apps/web/src/components/pay-wall-dialog.tsx
@@ -38,7 +38,7 @@ export function PayWallDialog({ children, ...forwardedProps }: DialogProps) {
return (
<Dialog {...dialog.dialogProps} {...forwardedProps}>
{children}
- <DialogContent className="w-[600px] overflow-hidden bg-gray-50 p-4 sm:p-6">
+ <DialogContent className="w-full max-w-[600px] overflow-hidden bg-gray-50 p-4 sm:p-6">
<SparklesIcon className="absolute -top-4 left-4 size-32 text-gray-500/10" />
<div className="space-y-6">
<header>
@@ -73,7 +73,7 @@ export function PayWallDialog({ children, ...forwardedProps }: DialogProps) {
</DialogDescription>
</header>
<section>
- <ul className="grid grid-cols-2 justify-center gap-2 text-sm font-medium">
+ <ul className="grid justify-center gap-2 text-center text-sm font-medium sm:grid-cols-2">
<li>
<CheckIcon className="mr-2 inline-block size-4 text-green-600" />
<Trans i18nKey="featureNameFinalize" defaults="Finalize Poll" />