Skip to content
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
2 changes: 1 addition & 1 deletion web/components/patients/PatientStateChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const PatientStateChip = ({ state, ...props }: PatientStateChipProps) =>
{...props}
color={getColor(state)}
size={props.size ?? 'sm'}
className={clsx('font-[var(--font-space-grotesk)] uppercase text-xs', props.className)}
className={clsx('font-semibold uppercase text-xs', props.className)}
>
{translation('patientState', { state: state as string })}
</Chip>
Expand Down
12 changes: 6 additions & 6 deletions web/components/tables/PatientList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ export const PatientList = forwardRef<PatientListRef, PatientListProps>(({ initi
if (refreshingPatientIds.has(row.original.id)) return rowLoadingCell
const sex = row.original.sex
const colorClass = sex === Sex.Male
? '!gender-male'
? 'gender-male'
: sex === Sex.Female
? '!gender-female'
: 'bg-gray-600 text-white'
? 'gender-female'
: 'gender-neutral'

const label = {
[Sex.Male]: translation('male'),
Expand All @@ -259,10 +259,10 @@ export const PatientList = forwardRef<PatientListRef, PatientListProps>(({ initi
<>
<span className="print:block hidden">{label}</span>
<Chip
color={sex === Sex.Unknown ? 'neutral' : undefined}
color={undefined}
coloringStyle="tonal"
size="sm"
className={`${colorClass} font-[var(--font-space-grotesk)] uppercase text-xs print:hidden`}
className={`${colorClass} uppercase font-semibold text-xs print:hidden`}
>
<span>{label}</span>
</Chip>
Expand Down Expand Up @@ -447,7 +447,7 @@ export const PatientList = forwardRef<PatientListRef, PatientListProps>(({ initi
</IconButton>
</div>
</div>
<div className="relative">
<div className="relative print:static">
{patientsLoading && (
<div className="absolute inset-0 z-10 flex items-center justify-center bg-surface/80 rounded-lg min-h-48">
<HelpwaveLogo animate="loading" color="currentColor" height={64} width={64} />
Expand Down
2 changes: 1 addition & 1 deletion web/components/tables/TaskList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export const TaskList = forwardRef<TaskListRef, TaskListProps>(({ tasks: initial
</IconButton>
</div>
</div>
<div className="flex-col-3 items-center relative">
<div className="flex-col-3 items-center relative print:static">
{loading && (
<div className="absolute inset-0 z-10 flex items-center justify-center bg-surface/80 rounded-lg min-h-48">
<HelpwaveLogo animate="loading" color="currentColor" height={64} width={64} />
Expand Down
4 changes: 2 additions & 2 deletions web/style/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
--color-gender-on-male: var(--color-white);
--color-gender-male-hover: var(--color-blue-600);

--color-gender-neutral: var(--color-blue-500);
--color-gender-neutral: var(--color-gray-600);
--color-gender-on-neutral: var(--color-white);
--color-gender-neutral-hover: var(--color-blue-600);
--color-gender-neutral-hover: var(--color-gray-700);

--color-location-hospital: var(--color-red-100);
--color-location-on-hospital: var(--color-red-700);
Expand Down
7 changes: 4 additions & 3 deletions web/style/table-printing.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
height: auto !important;
margin: 0 !important;
padding: 0 !important;
overflow: hidden !important;
overflow: auto !important;
overflow-x: hidden !important;
overflow-y: hidden !important;
overflow-y: auto !important;
max-height: none !important;
max-width: 100% !important;
background: white !important;
Expand All @@ -39,7 +39,8 @@
}

.print-content {
position: fixed;
position: absolute;
z-index: 10000 !important;
width: 100% !important;
max-width: 100% !important;
left: 0 !important;
Expand Down
Loading