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

HIV Patient Summary page is not scrollable #1922

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
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
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
Loading