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.

autoCapitalize="none" + sm:text-sm

Steven Teyce05d80962d8
diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsx
index 5405997cb3..3db835b18c 100644
--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx
@@ -648,6 +648,7 @@ function AddEditLinkModal({
}}
disabled={props && lockKey}
autoComplete="off"
+ autoCapitalize="none"
className={cn(
"block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",
{
diff --git a/apps/web/ui/modals/add-edit-link-modal/utm-section.tsx b/apps/web/ui/modals/add-edit-link-modal/utm-section.tsx
index 40dd3ea2b8..ff01e745e2 100644
--- a/apps/web/ui/modals/add-edit-link-modal/utm-section.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/utm-section.tsx
@@ -96,6 +96,7 @@ export default function UTMSection({
} block w-full rounded-r-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm`}
placeholder={examples}
value={params[key] || ""}
+ autoCapitalize="none"
onChange={(e) => {
setData({
...data,
diff --git a/apps/web/ui/shared/search-box.tsx b/apps/web/ui/shared/search-box.tsx
index 08c5afc06c..aa115c0db7 100644
--- a/apps/web/ui/shared/search-box.tsx
+++ b/apps/web/ui/shared/search-box.tsx
@@ -75,7 +75,7 @@ export const SearchBox = forwardRef(
ref={inputRef}
type="text"
className={cn(
- "peer w-full rounded-md border border-gray-200 px-10 text-sm text-black outline-none placeholder:text-gray-400",
+ "peer w-full rounded-md border border-gray-200 px-10 text-black outline-none placeholder:text-gray-400 sm:text-sm",
"transition-all focus:border-gray-500 focus:ring-4 focus:ring-gray-200",
inputClassName,
)}
@@ -85,6 +85,7 @@ export const SearchBox = forwardRef(
onChange(e.target.value);
debounced(e.target.value);
}}
+ autoCapitalize="none"
/>
{showClearButton && value.length > 0 && (
<button
diff --git a/packages/ui/src/filter/filter-select.tsx b/packages/ui/src/filter/filter-select.tsx
index 5a78fcab91..5da979049e 100644
--- a/packages/ui/src/filter/filter-select.tsx
+++ b/packages/ui/src/filter/filter-select.tsx
@@ -297,7 +297,7 @@ const CommandInput = (
<Command.Input
{...props}
size={1}
- className="grow border-0 py-3 pl-4 pr-2 text-sm outline-none placeholder:text-gray-400 focus:ring-0"
+ className="grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm"
onKeyDown={(e) => {
props.onKeyDown?.(e);
@@ -305,6 +305,7 @@ const CommandInput = (
props.emptySubmit?.(e);
}
}}
+ autoCapitalize="none"
/>
);
};
diff --git a/packages/ui/src/input-select.tsx b/packages/ui/src/input-select.tsx
index 1474268e87..effe41e2b2 100644
--- a/packages/ui/src/input-select.tsx
+++ b/packages/ui/src/input-select.tsx
@@ -362,6 +362,7 @@ const CommandInput = forwardRef<HTMLInputElement>((_, ref) => {
}}
disabled={disabled}
className="block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm"
+ autoCapitalize="none"
/>
);
});