Skip to content

Commit

Permalink
(fix) O3-3240: Fix appearance of card rows in admission request cards (
Browse files Browse the repository at this point in the history
  • Loading branch information
brandones authored Jul 24, 2024
1 parent 2de75c3 commit 7f7fe3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ interface AdmissionRequestCardProps {

const AdmissionRequestCard: React.FC<AdmissionRequestCardProps> = ({ patient }) => {
const { locationUuid } = useParams();
const admissionPatientCardSlots = usePatientCardRows(locationUuid);
const rows = usePatientCardRows(locationUuid);
return (
<div className={styles.admissionRequestCardHeader}>
{admissionPatientCardSlots.map((AdmissionPatientCard, i) => (
<AdmissionPatientCard key={i} patient={patient} bed={null} visit={null} />
<div className={styles.admissionRequestCard}>
{rows.map((CardRow, i) => (
<CardRow key={i} patient={patient} bed={null} visit={null} />
))}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
@use '@carbon/styles/scss/type';
@use '@carbon/styles/scss/spacing';
@use '@carbon/colors';
@import '~@openmrs/esm-styleguide/src/vars';

.admissionRequestCardHeader {
background-color: $ui-03;
padding: spacing.$spacing-03;
border: 1px solid $color-gray-30;
height: fit-content;
.admissionRequestCard {
background-color: $ui-01;
border: 1px solid $ui-03;
color: $color-gray-70;
display: flex;
align-items: center;
flex-wrap: wrap;
> div:not(:first-of-type)::before {
content: '·';
padding: spacing.$spacing-02;
flex-direction: column;
> :not(:first-child) {
border-top: 1px colors.$gray-20 solid;
}
}

Expand Down

0 comments on commit 7f7fe3c

Please sign in to comment.