update note height and fix multiple choice zod

This commit is contained in:
Johannes
2023-06-13 13:25:24 +02:00
parent eb1f4b0f0d
commit a4274da003
3 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ export default function ResponseNote({
!isOpen && responseNotes.length && "group/hint cursor-pointer bg-white hover:-right-3",
!isOpen && !responseNotes.length && "cursor-pointer bg-slate-50",
isOpen
? "-right-5 top-0 h-full w-1/4 bg-white"
? "-right-5 top-0 h-5/6 max-h-[600px] w-1/4 bg-white"
: responseNotes.length
? "right-0 top-[8.33%] h-5/6 max-h-[600px] w-1/12"
: "right-[120px] top-[8.333%] h-5/6 max-h-[600px] w-1/12 group-hover:right-[0]"

View File

@@ -87,7 +87,7 @@ export default function SingleResponse({ data, environmentId, surveyId }: OpenTe
className="group flex items-center"
href={`/environments/${environmentId}/people/${data.personId}`}>
<PersonAvatar personId={data.personId} />
<h3 className="ph-no-capture ml-4 pb-1 font-semibold text-slate-600 group-hover:underline">
<h3 className="ph-no-capture ml-4 pb-1 font-semibold text-slate-600 hover:underline">
{displayIdentifier}
</h3>
</Link>

View File

@@ -1,6 +1,6 @@
import { z } from "zod";
export const ZResponseData = z.record(z.union([z.string(), z.number()]));
export const ZResponseData = z.record(z.union([z.string(), z.number(), z.array(z.string())]));
export type TResponseData = z.infer<typeof ZResponseData>;