Skip to content

Commit

Permalink
Merge pull request #251 from adhocteam/dcloud/394-print-fixes
Browse files Browse the repository at this point in the history
Fix layout stacking on print styles
  • Loading branch information
rahearn authored Mar 17, 2021
2 parents dd9b1aa + dc58237 commit 576adbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ body {
width: 100%;
}

.print\:grid-col-6 {
flex: 0 1 auto;
width: 50%;
}

.usa-header {
background: #fff !important;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/ActivityReport/Pages/Review/ReviewItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const ReviewItem = ({ label, name, path }) => {

return (
<div className={`grid-row ${classes} margin-bottom-3 desktop:margin-bottom-0`}>
<div className="grid-col-12 desktop:grid-col-6 font-sans-2xs desktop:font-sans-sm text-bold desktop:text-normal">
<div className="grid-col-12 desktop:grid-col-6 print:grid-col-6 font-sans-2xs desktop:font-sans-sm text-bold desktop:text-normal">
{label}
</div>
<div className="grid-col-12 desktop:grid-col-6">
<div className="grid-col-12 desktop:grid-col-6 print:grid-col-6">
{values.map((v, index) => (
<div aria-label={`${label} ${index + 1}`} key={`${label}${v}`} col={12} className="desktop:flex-align-end display-flex flex-column flex-justify-center">
{Number.isNaN(v) ? '' : v}
Expand Down

0 comments on commit 576adbf

Please sign in to comment.