Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix formatting issues

Kiran K1b113a48323d
diff --git a/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx b/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx
index 55c5addfe1..84241bf302 100644
--- a/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx
+++ b/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx
@@ -11,7 +11,7 @@ const PageCopy = ({ title, message }: { title: string; message: string }) => {
return (
<>
<h1 className="font-display text-3xl font-bold sm:text-4xl">{title}</h1>
- <p className="text-pretty max-w-lg text-gray-600 sm:text-lg">{message}</p>
+ <p className="max-w-lg text-pretty text-gray-600 sm:text-lg">{message}</p>
</>
);
};
diff --git a/apps/web/ui/domains/domain-card.tsx b/apps/web/ui/domains/domain-card.tsx
index 1689e4232e..ec82ee075b 100644
--- a/apps/web/ui/domains/domain-card.tsx
+++ b/apps/web/ui/domains/domain-card.tsx
@@ -203,7 +203,7 @@ export default function DomainCard({ props }: { props: DomainProps }) {
>
{data ? (
data.status === "Valid Configuration" ? (
- <div className="text-pretty mt-6 flex items-center gap-2 rounded-lg bg-green-100/80 p-3 text-sm text-green-600">
+ <div className="mt-6 flex items-center gap-2 text-pretty rounded-lg bg-green-100/80 p-3 text-sm text-green-600">
<CircleCheck className="h-5 w-5 shrink-0" />
<div>
Good news! Your DNS records are set up correctly, but it can
diff --git a/packages/ui/src/nav-logo.tsx b/packages/ui/src/nav-logo.tsx
index 5c0a3d5d4d..925cf662d4 100644
--- a/packages/ui/src/nav-logo.tsx
+++ b/packages/ui/src/nav-logo.tsx
@@ -82,7 +82,7 @@ export function NavLogo({
setIsPopoverOpen(false);
}}
>
- <div className="grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]">
+ <div className="grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black">
<ContextMenuButton
text="Copy Logo as SVG"
variant="outline"
diff --git a/packages/ui/src/nav/content/shared.tsx b/packages/ui/src/nav/content/shared.tsx
index 542649aed9..1467ed9b0f 100644
--- a/packages/ui/src/nav/content/shared.tsx
+++ b/packages/ui/src/nav/content/shared.tsx
@@ -44,7 +44,7 @@ export function ContentLinkCard({
)}
</div>
{showArrow && (
- <ExpandingArrow className="invisible -ml-6 h-4 w-4 text-gray-700 group-aria-selected:visible dark:text-white/80 sm:group-hover:visible" />
+ <ExpandingArrow className="invisible -ml-6 h-4 w-4 text-gray-700 group-aria-selected:visible sm:group-hover:visible dark:text-white/80" />
)}
</div>
</Link>
diff --git a/packages/ui/src/nav/nav-mobile.tsx b/packages/ui/src/nav/nav-mobile.tsx
index a1d0ab82d6..8d601ecaea 100644
--- a/packages/ui/src/nav/nav-mobile.tsx
+++ b/packages/ui/src/nav/nav-mobile.tsx
@@ -35,7 +35,7 @@ export function NavMobile({ theme = "light" }: { theme?: NavTheme }) {
<button
onClick={() => setOpen(!open)}
className={cn(
- "fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",
+ "fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",
open && "hover:bg-gray-100 active:bg-gray-200",
)}
>
@@ -47,7 +47,7 @@ export function NavMobile({ theme = "light" }: { theme?: NavTheme }) {
</button>
<nav
className={cn(
- "fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",
+ "fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",
open && "block",
)}
>
diff --git a/packages/ui/src/tooltip.tsx b/packages/ui/src/tooltip.tsx
index fa9263d041..53f733ac7c 100644
--- a/packages/ui/src/tooltip.tsx
+++ b/packages/ui/src/tooltip.tsx
@@ -46,7 +46,7 @@ export function Tooltip({ children, content, side = "top" }: TooltipProps) {
className="animate-slide-up-fade z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm"
>
{typeof content === "string" ? (
- <span className="text-pretty block max-w-xs px-4 py-2 text-center text-sm text-gray-700">
+ <span className="block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700">
{content}
</span>
) : (