diff --git a/apps/web/api/ius/types.ts b/apps/web/api/ius/types.ts index c7420c0..2fc2d35 100644 --- a/apps/web/api/ius/types.ts +++ b/apps/web/api/ius/types.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ export type MetaObject = { disabled: boolean; - fieldType: 'CHECKBOX' | 'DECIMAL' | 'INT' | 'STRING'; + fieldType: 'CHECKBOX' | 'DECIMAL' | 'INT' | 'STRING' | 'TEXTAREA'; label: string; max: number; min: number; diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css index 73df465..24d41be 100644 --- a/apps/web/app/globals.css +++ b/apps/web/app/globals.css @@ -18,3 +18,24 @@ body { background-color: var(--color-background); } + +/* Scroll bar stylings */ +::-webkit-scrollbar { + width: 6px; + height: 6px; +} + +/* Track */ +::-webkit-scrollbar-track { +} + +/* Handle */ +::-webkit-scrollbar-thumb { + background: rgba(0, 0, 0, 0.3); + border-radius: 2px; +} + +/* Handle on hover */ +::-webkit-scrollbar-thumb:hover { + background: rgba(0, 0, 0, 0.4); +} diff --git a/apps/web/components/Form/Elements.tsx b/apps/web/components/Form/Elements.tsx index 4bc8010..c886051 100644 --- a/apps/web/components/Form/Elements.tsx +++ b/apps/web/components/Form/Elements.tsx @@ -4,6 +4,13 @@ import { useFormStore } from '@/store/ius/form'; import { useEffect } from 'react'; import { ElementContainer } from 'ui'; +function compatMetadata(metaData: Props['metaData']) { + const { comment, ...meta } = metaData; + comment.fieldType = 'TEXTAREA'; + + return { ...meta, comment }; +} + export function Elements({ data, metaData }: Props) { const { init, setValue, validation, values } = useFormStore(); @@ -13,7 +20,7 @@ export function Elements({ data, metaData }: Props) { return (