Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

change input icon spacing (#40787)

Francesco Sansalvadoreb5069bc1e1ea
diff --git a/apps/www/components/Events/new/EventGalleryFilters.tsx b/apps/www/components/Events/new/EventGalleryFilters.tsx
index 3921b1a1aa9..3292785db01 100644
--- a/apps/www/components/Events/new/EventGalleryFilters.tsx
+++ b/apps/www/components/Events/new/EventGalleryFilters.tsx
@@ -24,7 +24,7 @@ export function EventGalleryFilters() {
<SearchIcon className="absolute left-3 top-[9px] size-4 text-foreground-muted" />
<Input
placeholder="Search events"
- className="pl-10"
+ className="pl-9"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
/>
diff --git a/packages/ui-patterns/src/form/Layout/InputIconContainer.module.css b/packages/ui-patterns/src/form/Layout/InputIconContainer.module.css
index 4b0df33466a..ac9cbf96c20 100644
--- a/packages/ui-patterns/src/form/Layout/InputIconContainer.module.css
+++ b/packages/ui-patterns/src/form/Layout/InputIconContainer.module.css
@@ -1,5 +1,5 @@
.sbui-input-icon-container {
- @apply absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none;
+ @apply absolute inset-y-0 left-0 pl-2 flex items-center pointer-events-none;
/* set the default color of the icon */
@apply text-gray-600;
@apply dark:text-white;
diff --git a/packages/ui-patterns/src/form/Layout/InputIconContainer.tsx b/packages/ui-patterns/src/form/Layout/InputIconContainer.tsx
index 6ab29b6260d..f30e883e396 100644
--- a/packages/ui-patterns/src/form/Layout/InputIconContainer.tsx
+++ b/packages/ui-patterns/src/form/Layout/InputIconContainer.tsx
@@ -4,7 +4,7 @@ export default function InputIconContainer({ icon, className }: any) {
return (
<div
className={cn(
- 'absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-foreground-light',
+ 'absolute inset-y-0 left-0 pl-2 flex items-center pointer-events-none text-foreground-light',
className
)}
>
diff --git a/packages/ui/src/components/Input/Input.module.css b/packages/ui/src/components/Input/Input.module.css
index ae233879291..cf826d1a856 100644
--- a/packages/ui/src/components/Input/Input.module.css
+++ b/packages/ui/src/components/Input/Input.module.css
@@ -64,5 +64,5 @@
*/
/* .sbui-input--with-icon {
- @apply pl-10;
+ @apply pl-7;
} */
diff --git a/packages/ui/src/components/InputNumber/InputNumber.module.css b/packages/ui/src/components/InputNumber/InputNumber.module.css
index 13c7186446f..c9332c5c05a 100644
--- a/packages/ui/src/components/InputNumber/InputNumber.module.css
+++ b/packages/ui/src/components/InputNumber/InputNumber.module.css
@@ -130,5 +130,5 @@
*/
.sbui-inputnumber--with-icon {
- @apply pl-10;
+ @apply pl-7;
}
diff --git a/packages/ui/src/components/Listbox/SelectStyled.module.css b/packages/ui/src/components/Listbox/SelectStyled.module.css
index 95a20f0a1d9..213fe4d549d 100644
--- a/packages/ui/src/components/Listbox/SelectStyled.module.css
+++ b/packages/ui/src/components/Listbox/SelectStyled.module.css
@@ -65,7 +65,7 @@
*/
/* .sbui-listbox--with-icon {
- @apply pl-10;
+ @apply pl-7;
} */
/*
diff --git a/packages/ui/src/components/Select/Select.module.css b/packages/ui/src/components/Select/Select.module.css
index 6815602640c..26c8aa29f50 100644
--- a/packages/ui/src/components/Select/Select.module.css
+++ b/packages/ui/src/components/Select/Select.module.css
@@ -70,7 +70,7 @@
*/
.sbui-select--with-icon {
- @apply pl-10;
+ @apply pl-7;
}
/*
diff --git a/packages/ui/src/lib/Layout/InputIconContainer.module.css b/packages/ui/src/lib/Layout/InputIconContainer.module.css
index 4b0df33466a..ac9cbf96c20 100644
--- a/packages/ui/src/lib/Layout/InputIconContainer.module.css
+++ b/packages/ui/src/lib/Layout/InputIconContainer.module.css
@@ -1,5 +1,5 @@
.sbui-input-icon-container {
- @apply absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none;
+ @apply absolute inset-y-0 left-0 pl-2 flex items-center pointer-events-none;
/* set the default color of the icon */
@apply text-gray-600;
@apply dark:text-white;
diff --git a/packages/ui/src/lib/theme/defaultTheme.ts b/packages/ui/src/lib/theme/defaultTheme.ts
index e55e4503f79..de0bc841c39 100644
--- a/packages/ui/src/lib/theme/defaultTheme.ts
+++ b/packages/ui/src/lib/theme/defaultTheme.ts
@@ -446,7 +446,7 @@ export default {
`,
},
container: 'relative',
- with_icon: 'pl-10',
+ with_icon: 'pl-7',
size: {
...default__padding_and_text,
},
@@ -492,7 +492,7 @@ export default {
`,
},
container: 'relative',
- with_icon: 'pl-10',
+ with_icon: 'pl-7',
size: {
...default__padding_and_text,
},
@@ -539,7 +539,7 @@ export default {
},
disabled: 'opacity-50',
container: 'relative',
- with_icon: 'pl-10',
+ with_icon: 'pl-7',
size: {
...default__padding_and_text,
},
@@ -803,8 +803,8 @@ export default {
tiny: `pl-6`,
small: `pl-6`,
medium: `pl-7`,
- large: `pl-10`,
- xlarge: `pl-10`,
+ large: `pl-7`,
+ xlarge: `pl-7`,
},
align: {
vertical: 'flex flex-col space-y-1',
@@ -1383,7 +1383,7 @@ export default {
inputIconContainer: {
base: `
absolute inset-y-0
- left-0 pl-3 flex
+ left-0 pl-2 flex
items-center pointer-events-none
text-foreground-light
[&_svg]:stroke-[1.5]