Skip to content

Commit

Permalink
HIV Patient Summary page is not scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
CynthiaKamau committed Sep 4, 2024
1 parent c079f9a commit 9f9594c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,28 @@ export const SummaryCard: React.FC<SummaryCardProps> = ({ patientUuid, columns,
{isLoading ? (
<SkeletonText paragraph={true} />
) : (
<Tile className={styles.tile}>
<div className={styles.cardTitle}>
<h4 className={styles.title}> {headerTitle} </h4>
</div>
{maxRowItems ? (
groupedEncounterMappings.map((group) => (
<div className={styles.tilesContainer}>
<Tile className={styles.tile}>
<div className={styles.cardTitle}>
<h4 className={styles.title}> {headerTitle} </h4>
</div>
{maxRowItems ? (
groupedEncounterMappings.map((group) => (
<Column className={styles.columnContainer}>
{group.map(({ column, encounters }) => (
<SummaryItem column={column} encounters={encounters} />
))}
</Column>
))
) : (
<Column className={styles.columnContainer}>
{group.map(({ column, encounters }) => (
{columnEncountersMappings.map(({ column, encounters }) => (
<SummaryItem column={column} encounters={encounters} />
))}
</Column>
))
) : (
<Column className={styles.columnContainer}>
{columnEncountersMappings.map(({ column, encounters }) => (
<SummaryItem column={column} encounters={encounters} />
))}
</Column>
)}
</Tile>
)}
</Tile>
</div>
)}
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface EncounterValuesTileProps {

export const EncounterTile: React.FC<EncounterTileProps> = ({ patientUuid, columns, headerTitle }) => {
return (
<>
<div className={styles.tilesContainer}>
<Tile className={styles.tile}>
<div className={styles.cardTitle}>
<h4 className={styles.title}> {headerTitle} </h4>
Expand All @@ -38,7 +38,7 @@ export const EncounterTile: React.FC<EncounterTileProps> = ({ patientUuid, colum
))}
</Column>
</Tile>
</>
</div>
);
};

Expand Down
5 changes: 4 additions & 1 deletion packages/esm-commons-lib/src/styleguide/tiles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
border-bottom: 0.375rem solid $brand-teal-01;
}

.tilesContainer {
height: fit-content;
}

.tile {
height: 100%;
padding: 1px 0 16px 16px;
margin: 0.5rem;
border: solid 1px #e0e0e0;
Expand Down

0 comments on commit 9f9594c

Please sign in to comment.