Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

match input styles

Blue Mousee970fbe073a7
diff --git a/web/app/modals/AnnotationModal.tsx b/web/app/modals/AnnotationModal.tsx
index 5c173ca90..f812e0e22 100644
--- a/web/app/modals/AnnotationModal.tsx
+++ b/web/app/modals/AnnotationModal.tsx
@@ -7,6 +7,7 @@ import Datepicker from '~/ui/Datepicker'
import Spin from '~/ui/icons/Spin'
import Modal from '~/ui/Modal'
import Textarea from '~/ui/Textarea'
+import { cn } from '~/utils/generic'
const MAX_ANNOTATION_LENGTH = 120
@@ -130,7 +131,12 @@ const AnnotationModal = ({
}
}}
options={{
- altInputClass: `w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:border-slate-600 dark:bg-slate-800 dark:text-gray-100 ${!allowedToManage ? 'cursor-not-allowed opacity-50' : ''}`,
+ altInputClass: cn(
+ 'w-full rounded-md border-0 ring-1 ring-gray-300 bg-white px-3 py-2 text-sm text-gray-900 focus:ring-indigo-500 dark:ring-slate-800/50 dark:bg-slate-800 dark:text-gray-100',
+ {
+ 'cursor-not-allowed opacity-50': !allowedToManage,
+ },
+ ),
}}
/>
</div>
diff --git a/web/app/ui/Input.tsx b/web/app/ui/Input.tsx
index e459c7698..c7407322e 100644
--- a/web/app/ui/Input.tsx
+++ b/web/app/ui/Input.tsx
@@ -39,7 +39,7 @@ const Input = ({
<HeadlessInput
type={type}
className={cx(
- 'w-full rounded-md border-0 shadow-xs ring-1 focus:ring-indigo-500 sm:text-sm dark:bg-slate-800 dark:text-gray-50 dark:placeholder-gray-400',
+ 'w-full rounded-md border-0 ring-1 focus:ring-indigo-500 sm:text-sm dark:bg-slate-800 dark:text-gray-50 dark:placeholder-gray-400',
{
'text-red-900 placeholder-red-300 ring-red-600': isError,
'ring-gray-300 dark:ring-slate-800/50': !isError,