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.

fixed iOS zoom in bug, added bottom padding to mobile popover, changed logotype to svg

Steven Teya75eaaf573c4
diff --git a/app/ui/form.tsx b/app/ui/form.tsx
index 385b1438df..e77942f607 100644
--- a/app/ui/form.tsx
+++ b/app/ui/form.tsx
@@ -44,7 +44,7 @@ export default function Form({
type="text"
required
onChange={(e) => setValue(e.target.value)}
- className="w-full max-w-md rounded-md border border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
) : (
<div className="h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200" />
diff --git a/app/ui/home/demo/index.tsx b/app/ui/home/demo/index.tsx
index 59dafee7aa..20495064ae 100644
--- a/app/ui/home/demo/index.tsx
+++ b/app/ui/home/demo/index.tsx
@@ -72,7 +72,7 @@ export default function Demo() {
placeholder="Shorten your link"
autoComplete="off"
required
- className="peer block w-full rounded-md border border-gray-200 bg-white p-2 pl-10 pr-12 text-sm shadow-lg focus:border-black focus:outline-none focus:ring-0"
+ className="peer block w-full rounded-md border border-gray-200 bg-white p-2 pl-10 pr-12 shadow-lg focus:border-black focus:outline-none focus:ring-0 sm:text-sm"
/>
<FormButton />
</div>
diff --git a/app/ui/home/nav.tsx b/app/ui/home/nav.tsx
index a876549ee4..3b32d24418 100644
--- a/app/ui/home/nav.tsx
+++ b/app/ui/home/nav.tsx
@@ -8,6 +8,7 @@ import { cn } from "#/lib/utils";
import MaxWidthWrapper from "@/components/shared/max-width-wrapper";
import { APP_DOMAIN } from "#/lib/constants";
import va from "@vercel/analytics";
+import { LogoType } from "#/ui/icons";
const navItems = ["pricing", "changelog"];
@@ -40,13 +41,7 @@ export default function Nav() {
},
})}
>
- <Image
- src="/_static/logotype.svg"
- alt="Dub.sh logo"
- width={834}
- height={236}
- className="w-24"
- />
+ <LogoType />
</Link>
<div className="hidden items-center space-x-6 sm:flex">
diff --git a/app/ui/icons/index.tsx b/app/ui/icons/index.tsx
index 4d65d29b22..cbbea518bc 100644
--- a/app/ui/icons/index.tsx
+++ b/app/ui/icons/index.tsx
@@ -2,3 +2,4 @@ export { default as ExpandingArrow } from "./expanding-arrow";
export { default as LoadingCircle } from "./loading-circle";
export { default as LoadingDots } from "./loading-dots";
export { default as LoadingSpinner } from "./loading-spinner";
+export { default as LogoType } from "./logotype";
diff --git a/app/ui/icons/logotype.tsx b/app/ui/icons/logotype.tsx
new file mode 100644
index 0000000000..3a4a0ac036
--- /dev/null
+++ b/app/ui/icons/logotype.tsx
@@ -0,0 +1,51 @@
+import { cn } from "#/lib/utils";
+
+export default function LogoType({ className }: { className?: string }) {
+ return (
+ <svg
+ width="834"
+ height="236"
+ viewBox="0 0 834 236"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className={cn("h-6 w-fit", className)}
+ >
+ <path
+ d="M266 119.5C266 181.632 215.632 232 153.5 232C91.368 232 41 181.632 41 119.5C41 57.368 91.368 7 153.5 7C215.632 7 266 57.368 266 119.5Z"
+ fill="currentColor"
+ />
+ <mask
+ id="mask0_46_2"
+ style={{
+ maskType: "alpha",
+ }}
+ maskUnits="userSpaceOnUse"
+ x="41"
+ y="7"
+ width="225"
+ height="225"
+ >
+ <path
+ d="M266 119.5C266 181.632 215.632 232 153.5 232C91.368 232 41 181.632 41 119.5C41 57.368 91.368 7 153.5 7C215.632 7 266 57.368 266 119.5Z"
+ fill="currentColor"
+ />
+ </mask>
+ <g mask="url(#mask0_46_2)">
+ <ellipse cx="153" cy="124.5" rx="58" ry="57.5" fill="white" />
+ <path d="M185 -10H211V181H185V-10Z" fill="white" />
+ </g>
+ <path
+ d="M397.25 213.75C385.25 213.75 374.833 211.083 366 205.75C357.167 200.417 350.25 192.917 345.25 183.25C340.417 173.417 338 161.917 338 148.75C338 135.417 340.5 123.75 345.5 113.75C350.5 103.583 357.583 95.6667 366.75 90C376.083 84.3333 387.083 81.5 399.75 81.5C407.583 81.5 414.833 82.9167 421.5 85.75C428.333 88.5833 433.583 92.3333 437.25 97V22H475.75V210.5H439.5L437.5 194.5C434.167 200.167 428.833 204.833 421.5 208.5C414.333 212 406.25 213.75 397.25 213.75ZM406.5 178.5C412.5 178.5 417.75 177.25 422.25 174.75C426.917 172.083 430.5 168.417 433 163.75C435.667 158.917 437 153.417 437 147.25C437 140.917 435.667 135.417 433 130.75C430.5 126.083 426.917 122.5 422.25 120C417.75 117.333 412.5 116 406.5 116C400.5 116 395.25 117.333 390.75 120C386.25 122.667 382.75 126.333 380.25 131C377.917 135.667 376.75 141.083 376.75 147.25C376.75 153.417 377.917 158.833 380.25 163.5C382.75 168.167 386.25 171.833 390.75 174.5C395.25 177.167 400.5 178.5 406.5 178.5Z"
+ fill="currentColor"
+ />
+ <path
+ d="M587.662 85.5H626.162C626.162 85.5 626.162 148.5 626.162 164C626.162 179.5 623.786 191.5 616.5 200.5C609.214 209.5 594 213.75 582.162 213.75C570.324 213.75 564.412 213.75 564.412 213.75C564.412 213.75 556.662 213.75 549.162 213.75C534.995 213.75 523.745 209.333 515.412 200.5C507.245 191.5 503.162 179.333 503.162 164V85.5H541.662V150C541.662 160.167 543.495 167.667 547.162 172.5C550.829 177.167 556.579 179.5 564.412 179.5C572.745 179.5 578.662 177.25 582.162 172.75C585.829 168.083 587.662 160.667 587.662 150.5V85.5Z"
+ fill="currentColor"
+ />
+ <path
+ d="M691.303 210.5H655.053V22H693.553V100C697.386 94.3333 703.053 89.8333 710.553 86.5C718.219 83 726.553 81.25 735.553 81.25C747.219 81.25 757.303 84.0833 765.803 89.75C774.469 95.4167 781.136 103.333 785.803 113.5C790.469 123.667 792.803 135.583 792.803 149.25C792.803 162.083 790.219 173.417 785.053 183.25C780.053 192.917 772.969 200.417 763.803 205.75C754.803 211.083 744.386 213.75 732.553 213.75C723.886 213.75 715.969 212 708.803 208.5C701.803 204.833 696.636 200.167 693.303 194.5L691.303 210.5ZM693.803 147.25C693.803 153.417 695.053 158.917 697.553 163.75C700.219 168.417 703.803 172.083 708.303 174.75C712.969 177.25 718.303 178.5 724.303 178.5C730.469 178.5 735.719 177.167 740.053 174.5C744.553 171.833 747.969 168.167 750.303 163.5C752.803 158.833 754.053 153.417 754.053 147.25C754.053 141.083 752.803 135.667 750.303 131C747.969 126.333 744.553 122.667 740.053 120C735.719 117.333 730.469 116 724.303 116C718.303 116 712.969 117.333 708.303 120C703.803 122.5 700.219 126.083 697.553 130.75C695.053 135.417 693.803 140.917 693.803 147.25Z"
+ fill="currentColor"
+ />
+ </svg>
+ );
+}
diff --git a/app/ui/modals/add-edit-link-modal/android-section.tsx b/app/ui/modals/add-edit-link-modal/android-section.tsx
index 4cce148511..2fc050faae 100644
--- a/app/ui/modals/add-edit-link-modal/android-section.tsx
+++ b/app/ui/modals/add-edit-link-modal/android-section.tsx
@@ -57,7 +57,7 @@ export default function AndroidSection({
onChange={(e) => {
setData({ ...data, android: e.target.value });
}}
- className="block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
aria-invalid="true"
/>
</motion.div>
diff --git a/app/ui/modals/add-edit-link-modal/expiration-section.tsx b/app/ui/modals/add-edit-link-modal/expiration-section.tsx
index 88b6bf39cc..fc9582deef 100644
--- a/app/ui/modals/add-edit-link-modal/expiration-section.tsx
+++ b/app/ui/modals/add-edit-link-modal/expiration-section.tsx
@@ -53,7 +53,7 @@ export default function ExpirationSection({
onChange={(e) => {
setData({ ...data, expiresAt: new Date(e.target.value) });
}}
- className="flex w-full items-center justify-center space-x-2 rounded-md border border-gray-300 px-3 py-2 text-sm text-gray-500 shadow-sm transition-all hover:border-gray-800 focus:border-gray-800 focus:outline-none focus:ring-gray-500"
+ className="flex w-full items-center justify-center space-x-2 rounded-md border border-gray-300 px-3 py-2 text-gray-500 shadow-sm transition-all hover:border-gray-800 focus:border-gray-800 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
</motion.div>
)}
diff --git a/app/ui/modals/add-edit-link-modal/index.tsx b/app/ui/modals/add-edit-link-modal/index.tsx
index 79d276c11a..ff12902d3c 100644
--- a/app/ui/modals/add-edit-link-modal/index.tsx
+++ b/app/ui/modals/add-edit-link-modal/index.tsx
@@ -392,7 +392,7 @@ function AddEditLinkModal({
urlError
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"
- } block w-full rounded-md text-sm focus:outline-none`}
+ } block w-full rounded-md focus:outline-none sm:text-sm`}
aria-invalid="true"
/>
{urlError && (
@@ -474,7 +474,7 @@ function AddEditLinkModal({
keyError
? "border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"
- } block w-full rounded-r-md pr-10 text-sm focus:outline-none`}
+ } block w-full rounded-r-md pr-10 focus:outline-none sm:text-sm`}
placeholder="github"
value={key}
onChange={(e) => {
diff --git a/app/ui/modals/add-edit-link-modal/ios-section.tsx b/app/ui/modals/add-edit-link-modal/ios-section.tsx
index 122b23c937..4acf93bd70 100644
--- a/app/ui/modals/add-edit-link-modal/ios-section.tsx
+++ b/app/ui/modals/add-edit-link-modal/ios-section.tsx
@@ -55,7 +55,7 @@ export default function IOSSection({
onChange={(e) => {
setData({ ...data, ios: e.target.value });
}}
- className="block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
aria-invalid="true"
/>
</motion.div>
diff --git a/app/ui/modals/add-edit-link-modal/og-section.tsx b/app/ui/modals/add-edit-link-modal/og-section.tsx
index 80b2d5db82..1c093d3e18 100644
--- a/app/ui/modals/add-edit-link-modal/og-section.tsx
+++ b/app/ui/modals/add-edit-link-modal/og-section.tsx
@@ -204,7 +204,7 @@ export default function OGSection({
id={`title-${randomIdx}`}
minRows={3}
maxLength={120}
- className="block w-full rounded-md border-gray-300 pr-10 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="Dub - Open Source Bitly Alternative"
value={title || ""}
onChange={(e) => {
@@ -235,7 +235,7 @@ export default function OGSection({
id={`description-${randomIdx}`}
minRows={3}
maxLength={240}
- className="block w-full rounded-md border-gray-300 pr-10 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="Dub is open-source link management tool for modern marketing teams to create, share, and track short links."
value={description || ""}
onChange={(e) => {
diff --git a/app/ui/modals/add-edit-link-modal/password-section.tsx b/app/ui/modals/add-edit-link-modal/password-section.tsx
index eb50c891bc..e2debf362e 100644
--- a/app/ui/modals/add-edit-link-modal/password-section.tsx
+++ b/app/ui/modals/add-edit-link-modal/password-section.tsx
@@ -55,7 +55,7 @@ export default function PasswordSection({
name="password"
id="password"
type={showPassword ? "text" : "password"}
- className="block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
value={password || ""}
placeholder="Enter password"
onChange={(e) => {
diff --git a/app/ui/modals/add-edit-link-modal/utm-section.tsx b/app/ui/modals/add-edit-link-modal/utm-section.tsx
index 85ee593f6a..581c37cde1 100644
--- a/app/ui/modals/add-edit-link-modal/utm-section.tsx
+++ b/app/ui/modals/add-edit-link-modal/utm-section.tsx
@@ -81,7 +81,7 @@ export default function UTMSection({
disabled={!isValidUrl}
className={`${
isValidUrl ? "" : "cursor-not-allowed bg-gray-100"
- } block w-full rounded-r-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500`}
+ } block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm`}
placeholder={examples}
value={params[key] || ""}
onChange={(e) => {
diff --git a/app/ui/popover.tsx b/app/ui/popover.tsx
index b4fdee25b3..e7361fb9e7 100644
--- a/app/ui/popover.tsx
+++ b/app/ui/popover.tsx
@@ -46,14 +46,14 @@ export default function Popover({
return (
<>
- <div className="md:hidden">{children}</div>
+ <div className="sm:hidden">{children}</div>
<AnimatePresence>
{openPopover && (
<>
<motion.div
ref={mobileTooltipRef}
key="mobile-tooltip"
- className="group fixed inset-x-0 bottom-0 z-40 w-screen cursor-grab active:cursor-grabbing md:hidden"
+ className="group fixed inset-x-0 bottom-0 z-40 w-screen cursor-grab active:cursor-grabbing sm:hidden"
initial={{ y: "100%" }}
animate={{
y: openPopover ? 0 : "100%",
@@ -73,13 +73,13 @@ export default function Popover({
<div className="-mr-1 h-1 w-6 rounded-full bg-gray-300 transition-all group-active:rotate-12" />
<div className="h-1 w-6 rounded-full bg-gray-300 transition-all group-active:-rotate-12" />
</div>
- <div className="flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white align-middle shadow-xl">
+ <div className="flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl">
{content}
</div>
</motion.div>
<motion.div
key="mobile-tooltip-backdrop"
- className="fixed inset-0 z-30 bg-gray-100 bg-opacity-10 backdrop-blur md:hidden"
+ className="fixed inset-0 z-30 bg-gray-100 bg-opacity-10 backdrop-blur sm:hidden"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
@@ -93,13 +93,13 @@ export default function Popover({
open={width > 640 && openPopover}
onOpenChange={width > 640 && setOpenPopover}
>
- <PopoverPrimitive.Trigger className="hidden md:inline-flex" asChild>
+ <PopoverPrimitive.Trigger className="hidden sm:inline-flex" asChild>
{children}
</PopoverPrimitive.Trigger>
<PopoverPrimitive.Content
sideOffset={4}
align={align}
- className="z-20 hidden animate-slide-up-fade items-center rounded-md border border-gray-200 bg-white drop-shadow-lg md:block"
+ className="z-20 hidden animate-slide-up-fade items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block"
>
{content}
</PopoverPrimitive.Content>
diff --git a/components/app/modals/add-edit-domain-modal.tsx b/components/app/modals/add-edit-domain-modal.tsx
index d07d80a7fd..d537e128b2 100644
--- a/components/app/modals/add-edit-domain-modal.tsx
+++ b/components/app/modals/add-edit-domain-modal.tsx
@@ -212,7 +212,7 @@ function AddEditDomainModal({
domainError
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"
- } block w-full rounded-md text-sm focus:outline-none`}
+ } block w-full rounded-md focus:outline-none sm:text-sm`}
placeholder="dub.sh"
value={domain}
onChange={(e) => {
@@ -264,7 +264,7 @@ function AddEditDomainModal({
type="url"
name="target"
id="target"
- className="block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="https://example.com"
value={target}
onChange={(e) => setData({ ...data, target: e.target.value })}
@@ -308,7 +308,7 @@ function AddEditDomainModal({
type: e.target.value as "redirect" | "rewrite",
})
}
- className="mt-1 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-500 shadow-sm focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="mt-1 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-gray-500 shadow-sm focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
>
<option value="redirect">Redirect</option>
<option value="rewrite">Rewrite</option>
diff --git a/components/app/modals/add-edit-link-modal/android-section.tsx b/components/app/modals/add-edit-link-modal/android-section.tsx
index 4cce148511..2fc050faae 100644
--- a/components/app/modals/add-edit-link-modal/android-section.tsx
+++ b/components/app/modals/add-edit-link-modal/android-section.tsx
@@ -57,7 +57,7 @@ export default function AndroidSection({
onChange={(e) => {
setData({ ...data, android: e.target.value });
}}
- className="block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
aria-invalid="true"
/>
</motion.div>
diff --git a/components/app/modals/add-edit-link-modal/expiration-section.tsx b/components/app/modals/add-edit-link-modal/expiration-section.tsx
index a3035fd08c..e665f5d7a3 100644
--- a/components/app/modals/add-edit-link-modal/expiration-section.tsx
+++ b/components/app/modals/add-edit-link-modal/expiration-section.tsx
@@ -54,7 +54,7 @@ export default function ExpirationSection({
onChange={(e) => {
setData({ ...data, expiresAt: new Date(e.target.value) });
}}
- className="flex w-full items-center justify-center space-x-2 rounded-md border border-gray-300 px-3 py-2 text-sm text-gray-500 shadow-sm transition-all hover:border-gray-800 focus:border-gray-800 focus:outline-none focus:ring-gray-500"
+ className="flex w-full items-center justify-center space-x-2 rounded-md border border-gray-300 px-3 py-2 text-gray-500 shadow-sm transition-all hover:border-gray-800 focus:border-gray-800 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
</motion.div>
)}
diff --git a/components/app/modals/add-edit-link-modal/index.tsx b/components/app/modals/add-edit-link-modal/index.tsx
index efda53f29a..da10632f83 100644
--- a/components/app/modals/add-edit-link-modal/index.tsx
+++ b/components/app/modals/add-edit-link-modal/index.tsx
@@ -399,7 +399,7 @@ function AddEditLinkModal({
urlError
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:ring-gray-500"
- } block w-full rounded-md text-sm focus:outline-none`}
+ } block w-full rounded-md focus:outline-none sm:text-sm`}
aria-invalid="true"
/>
{urlError && (
@@ -480,7 +480,7 @@ function AddEditLinkModal({
disabled={props && lockKey}
autoComplete="off"
className={cn(
- "block w-full rounded-r-md text-sm focus:outline-none",
+ "block w-full rounded-r-md focus:outline-none sm:text-sm",
{
"border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500":
keyError,
diff --git a/components/app/modals/add-edit-link-modal/ios-section.tsx b/components/app/modals/add-edit-link-modal/ios-section.tsx
index 122b23c937..4acf93bd70 100644
--- a/components/app/modals/add-edit-link-modal/ios-section.tsx
+++ b/components/app/modals/add-edit-link-modal/ios-section.tsx
@@ -55,7 +55,7 @@ export default function IOSSection({
onChange={(e) => {
setData({ ...data, ios: e.target.value });
}}
- className="block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
aria-invalid="true"
/>
</motion.div>
diff --git a/components/app/modals/add-edit-link-modal/og-section.tsx b/components/app/modals/add-edit-link-modal/og-section.tsx
index 80b2d5db82..1c093d3e18 100644
--- a/components/app/modals/add-edit-link-modal/og-section.tsx
+++ b/components/app/modals/add-edit-link-modal/og-section.tsx
@@ -204,7 +204,7 @@ export default function OGSection({
id={`title-${randomIdx}`}
minRows={3}
maxLength={120}
- className="block w-full rounded-md border-gray-300 pr-10 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="Dub - Open Source Bitly Alternative"
value={title || ""}
onChange={(e) => {
@@ -235,7 +235,7 @@ export default function OGSection({
id={`description-${randomIdx}`}
minRows={3}
maxLength={240}
- className="block w-full rounded-md border-gray-300 pr-10 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
placeholder="Dub is open-source link management tool for modern marketing teams to create, share, and track short links."
value={description || ""}
onChange={(e) => {
diff --git a/components/app/modals/add-edit-link-modal/password-section.tsx b/components/app/modals/add-edit-link-modal/password-section.tsx
index eb50c891bc..e2debf362e 100644
--- a/components/app/modals/add-edit-link-modal/password-section.tsx
+++ b/components/app/modals/add-edit-link-modal/password-section.tsx
@@ -55,7 +55,7 @@ export default function PasswordSection({
name="password"
id="password"
type={showPassword ? "text" : "password"}
- className="block w-full rounded-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
value={password || ""}
placeholder="Enter password"
onChange={(e) => {
diff --git a/components/app/modals/add-edit-link-modal/tags-section.tsx b/components/app/modals/add-edit-link-modal/tags-section.tsx
index e0e7362f6b..c1f5722509 100644
--- a/components/app/modals/add-edit-link-modal/tags-section.tsx
+++ b/components/app/modals/add-edit-link-modal/tags-section.tsx
@@ -98,7 +98,7 @@ export default function TagsSection({
setOpenCommandList(true);
}
}}
- className="block w-full rounded-md border-none px-0 text-sm text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0"
+ className="block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"
/>
);
};
diff --git a/components/app/modals/add-edit-link-modal/utm-section.tsx b/components/app/modals/add-edit-link-modal/utm-section.tsx
index 85ee593f6a..21e097a1fa 100644
--- a/components/app/modals/add-edit-link-modal/utm-section.tsx
+++ b/components/app/modals/add-edit-link-modal/utm-section.tsx
@@ -71,7 +71,7 @@ export default function UTMSection({
<motion.div className="mt-3 grid gap-2" {...FADE_IN_ANIMATION_SETTINGS}>
{paramsMetadata.map(({ display, key, examples }) => (
<div key={key} className="relative mt-1 flex rounded-md shadow-sm">
- <span className="flex w-60 items-center justify-center whitespace-nowrap rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-sm text-gray-500">
+ <span className="flex w-60 items-center justify-center whitespace-nowrap rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm">
{display}
</span>
<input
@@ -81,7 +81,7 @@ export default function UTMSection({
disabled={!isValidUrl}
className={`${
isValidUrl ? "" : "cursor-not-allowed bg-gray-100"
- } block w-full rounded-r-md border-gray-300 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500`}
+ } block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm`}
placeholder={examples}
value={params[key] || ""}
onChange={(e) => {
diff --git a/components/app/modals/invite-teammate-modal.tsx b/components/app/modals/invite-teammate-modal.tsx
index 4da776ef74..cf49301930 100644
--- a/components/app/modals/invite-teammate-modal.tsx
+++ b/components/app/modals/invite-teammate-modal.tsx
@@ -87,7 +87,7 @@ function InviteTeammateModal({
required
value={email}
onChange={(e) => setEmail(e.target.value)}
- className="block w-full rounded-md border-gray-300 pr-10 text-sm text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500"
+ className="block w-full rounded-md border-gray-300 pr-10 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
/>
</div>
</div>
diff --git a/components/shared/popover.tsx b/components/shared/popover.tsx
index 24866170bc..19b32541ea 100644
--- a/components/shared/popover.tsx
+++ b/components/shared/popover.tsx
@@ -47,14 +47,14 @@ export default function Popover({
<>
{!desktopOnly && (
<>
- <div className="md:hidden">{children}</div>
+ <div className="sm:hidden">{children}</div>
<AnimatePresence>
{openPopover && (
<>
<motion.div
ref={mobileTooltipRef}
key="mobile-tooltip"
- className="group fixed inset-x-0 bottom-0 z-40 w-screen cursor-grab active:cursor-grabbing md:hidden"
+ className="group fixed inset-x-0 bottom-0 left-0 z-40 w-screen cursor-grab active:cursor-grabbing sm:hidden"
initial={{ y: "100%" }}
animate={{
y: openPopover ? 0 : "100%",
@@ -74,13 +74,13 @@ export default function Popover({
<div className="-mr-1 h-1 w-6 rounded-full bg-gray-300 transition-all group-active:rotate-12" />
<div className="h-1 w-6 rounded-full bg-gray-300 transition-all group-active:-rotate-12" />
</div>
- <div className="flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white align-middle shadow-xl">
+ <div className="flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl">
{content}
</div>
</motion.div>
<motion.div
key="mobile-tooltip-backdrop"
- className="fixed inset-0 z-30 bg-gray-100 bg-opacity-10 backdrop-blur md:hidden"
+ className="fixed inset-0 z-30 bg-gray-100 bg-opacity-10 backdrop-blur sm:hidden"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
@@ -94,7 +94,7 @@ export default function Popover({
<PopoverPrimitive.Root open={openPopover} onOpenChange={setOpenPopover}>
<PopoverPrimitive.Trigger
{...(!desktopOnly && {
- className: "hidden md:inline-flex",
+ className: "hidden sm:inline-flex",
})}
asChild
>
@@ -107,7 +107,7 @@ export default function Popover({
className={cn(
"z-40 animate-slide-up-fade items-center rounded-md border border-gray-200 bg-white drop-shadow-lg",
{
- "hidden md:block": !desktopOnly,
+ "hidden sm:block": !desktopOnly,
},
)}
>