Skip to content

Commit

Permalink
(fix) remove blank div from lab tabs (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
pirupius authored Feb 6, 2024
1 parent e0818a9 commit 970da4a
Show file tree
Hide file tree
Showing 17 changed files with 526 additions and 609 deletions.
7 changes: 1 addition & 6 deletions src/completed-list/completed-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,7 @@ const CompletedList: React.FC<CompletedListProps> = ({ fulfillerStatus }) => {
}

if (paginatedWorkListEntries?.length > 0) {
return (
<div>
<div className={styles.headerBtnContainer}></div>
<DataTable rows={tableRows} headers={tableColumns} useZebraStyles />
</div>
);
return <DataTable rows={tableRows} headers={tableColumns} useZebraStyles />;
} else {
return (
<div className={styles.tileContainer}>
Expand Down
9 changes: 0 additions & 9 deletions src/completed-list/completed-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ title {
}
}

.headerBtnContainer {
background-color: $ui-background;
padding: spacing.$spacing-05;
text-align: right;
}

.searchContainer {
display: flex;
align-items: center;
Expand Down Expand Up @@ -193,7 +187,6 @@ title {
.tableLayerSearch {
margin: 5px;
padding: 10px;

}

.dropDownContainer {
Expand All @@ -207,7 +200,6 @@ title {
margin: 10px;
}


.tileContainer {
background-color: $ui-02;
border-top: 1px solid $ui-03;
Expand All @@ -230,4 +222,3 @@ title {
color: $text-02;
margin-bottom: 0.5rem;
}

1 change: 0 additions & 1 deletion src/lab-tabs/approved-tab.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import styles from "../queue-list/laboratory-queue.scss";
const ApprovedComponent = () => {
return (
<div>
<div className={styles.headerBtnContainer}></div>
<CompletedList fulfillerStatus={"COMPLETED"} />
</div>
);
Expand Down
2 changes: 0 additions & 2 deletions src/lab-tabs/referred-tab.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import styles from "../queue-list/laboratory-queue.scss";
const ReferredComponent = () => {
return (
<div>
<div className={styles.headerBtnContainer}></div>

<EmptyState
displayText={"referred tests"}
headerTitle={"Referred tests"}
Expand Down
1 change: 0 additions & 1 deletion src/lab-tabs/review-tab.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import styles from "../queue-list/laboratory-queue.scss";
const ReviewComponent = () => {
return (
<div>
<div className={styles.headerBtnContainer}></div>
<ReviewList fulfillerStatus={"IN_PROGRESS"} />
</div>
);
Expand Down
1 change: 0 additions & 1 deletion src/lab-tabs/work-list-tab.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import styles from "../queue-list/laboratory-queue.scss";
const WorkListComponent = () => {
return (
<div>
<div className={styles.headerBtnContainer}></div>
<WorkList fulfillerStatus={"IN_PROGRESS"} />
</div>
);
Expand Down
111 changes: 53 additions & 58 deletions src/patient-chart/laboratory-order.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,60 @@
@use '@carbon/styles/scss/type';
@import "~@openmrs/esm-styleguide/src/vars";
@import '../root.scss';
.headerBtnContainer {
background-color: $ui-background;
padding: spacing.$spacing-05;
text-align: right;
}

.tileContainer {
background-color: $ui-02;
border-top: 1px solid $ui-03;
padding: 5rem 0;
}

.tile {
margin: auto;
width: fit-content;
}

.tileContent {
display: flex;
flex-direction: column;
align-items: center;
.tileContainer {
background-color: $ui-02;
border-top: 1px solid $ui-03;
padding: 5rem 0;
}

.tile {
margin: auto;
width: fit-content;
}

.tileContent {
display: flex;
flex-direction: column;
align-items: center;
}
.content {
@include type.type-style('heading-compact-02');
color: $text-02;
margin-bottom: 0.5rem;
}

.helper {
@include type.type-style('body-compact-01');
color: $text-02;
}

.separator {
@include type.type-style('body-compact-02');
color: $text-02;
width: 80%;
margin: 1.5rem auto;
overflow: hidden;
text-align: center;

&::before,
&::after {
background-color: $text-03;
content: '';
display: inline-block;
height: 1px;
position: relative;
vertical-align: middle;
width: 50%;
}
.content {
@include type.type-style('heading-compact-02');
color: $text-02;
margin-bottom: 0.5rem;

&::before {
right: 0.5rem;
margin-left: -50%;
}
.helper {
@include type.type-style('body-compact-01');
color: $text-02;

&::after {
left: 0.5rem;
margin-right: -50%;
}

.separator {
@include type.type-style('body-compact-02');
color: $text-02;
width: 80%;
margin: 1.5rem auto;
overflow: hidden;
text-align: center;

&::before,
&::after {
background-color: $text-03;
content: '';
display: inline-block;
height: 1px;
position: relative;
vertical-align: middle;
width: 50%;
}

&::before {
right: 0.5rem;
margin-left: -50%;
}

&::after {
left: 0.5rem;
margin-right: -50%;
}
}
}
13 changes: 3 additions & 10 deletions src/patient-chart/results-summary/print-results-summary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
margin: 5px;
}

.headerBtnContainer {
background-color: $ui-background;
padding: spacing.$spacing-05;
text-align: right;
}

.tileContainer {
background-color: $ui-02;
border-top: 1px solid $ui-03;
Expand Down Expand Up @@ -89,17 +83,16 @@
border-collapse: collapse;
width: 100%;
}

td, th {
border: 1px solid #000;
text-align: left;
font-size: 8px;
padding: 8px;
width: 80px;
}

th {
background-color: #f2f2f2;
}

}
}
Loading

0 comments on commit 970da4a

Please sign in to comment.