Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Minor UI Enhancement in questionnaire #10987

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/components/Questionnaire/QuestionTypes/AllergyQuestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,18 @@ export function AllergyQuestion({
<Table>
<TableHeader>
<TableRow>
<TableHead className="w-[40px]"></TableHead>
<TableHead className="w-[220px]">{t("substance")}</TableHead>
<TableHead className="w-[65px] text-center px-0.5">
<TableHead className="w-10"></TableHead>
<TableHead className="w-55">{t("substance")}</TableHead>
<TableHead className="w-17 text-center px-0.5">
{t("criticality")}
</TableHead>
<TableHead className="w-[85px] text-center px-0.5">
<TableHead className="w-21 text-center px-0.5">
{t("status")}
</TableHead>
<TableHead className="w-[100px] text-center px-0.5 pr-6">
<TableHead className="w-25 text-center px-0.5 pr-6">
{t("occurrence")}
</TableHead>
<TableHead className="w-[35px]"></TableHead>
<TableHead className="w-9"></TableHead>
</TableRow>
</TableHeader>
<TableBody>
Expand Down Expand Up @@ -529,7 +529,7 @@ const AllergyTableRow = ({
onValueChange={(value) => onUpdate?.({ criticality: value })}
disabled={disabled}
>
<SelectTrigger className="h-7 w-[65px] px-1">
<SelectTrigger className="h-7 px-1">
<SelectValue placeholder={t("critical")} />
</SelectTrigger>
<SelectContent>
Expand All @@ -541,7 +541,7 @@ const AllergyTableRow = ({
</SelectContent>
</Select>
</TableCell>
<TableCell className="min-w-[85px] py-1 px-0.5">
<TableCell className="py-1 px-0.5">
<Select
value={allergy.verification_status}
onValueChange={(value) => {
Expand All @@ -553,7 +553,7 @@ const AllergyTableRow = ({
}}
disabled={disabled}
>
<SelectTrigger className="h-7 w-[85px] px-1">
<SelectTrigger className="h-7 px-1">
<SelectValue placeholder={t("verify")} />
</SelectTrigger>
<SelectContent>
Expand All @@ -567,13 +567,13 @@ const AllergyTableRow = ({
</SelectContent>
</Select>
</TableCell>
<TableCell className="min-w-[100px] py-1 px-1">
<TableCell className="py-1 px-1">
<Input
type="date"
value={allergy.last_occurrence}
onChange={(e) => onUpdate?.({ last_occurrence: e.target.value })}
disabled={disabled}
className="h-7 text-sm w-[100px] px-1"
className="h-7 text-sm px-1"
/>
</TableCell>
<TableCell className="min-w-[35px] py-1 px-0">
Expand Down
Loading
Loading