Skip to content

Commit

Permalink
minor styling fix, fix print view
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen authored and Amy Chen committed Nov 22, 2023
1 parent d799b13 commit 704dc87
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/report/BodyDiagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ export default class BodyDiagram extends Component {
index === this.state.selectedIndex ? "active" : ""
}`}
key={`dot_${index}`}
title={`${ getDisplayDateFromISOString(item.date)}`}
></div>
);
})}
Expand Down
3 changes: 3 additions & 0 deletions src/styles/components/_Report.scss
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,9 @@ $selector-box-shadow: 0 2px 2px #383e40;
svg {
color: $link-color;
border-color: $link-border-color;
&:hover {
transform: scale(1.1);
}
}
}
.dots-container {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/_Summary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
}
@media (min-width: 1600px) {
& {
max-width: 80%;
max-width: 85%;
}
}
.title {
Expand Down
4 changes: 3 additions & 1 deletion src/styles/elements/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ select {
border: 0;
outline-width: 0;
outline: none;
font-weight: 600;
&:hover {
color: $link-color-dark;
}
Expand All @@ -39,6 +40,7 @@ select {
border-color: transparent;
select {
color: $color-black;
font-weight: 500;
}
&::after {
display: none;
Expand All @@ -49,7 +51,7 @@ select {
.select::after {
content: '\25BC';
position: absolute;
top: 0;
top: 0.2rem;
right: 0;
padding: 0.45em;
background-color: #FFF;
Expand Down
19 changes: 16 additions & 3 deletions src/styles/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
.summary__display {
background-color: #fff !important;
padding: 0;
.sections {
.MME-svg-container {
width: calc(100% - 56px);
}
}
}
.header {
position: relative;
Expand Down Expand Up @@ -54,6 +59,11 @@
// page-break-inside: avoid;
// }
// }
.panels {
.sub-panels {
page-break-before: always;
}
}
.report {
.Collapsible {
&:not(:first-of-type) {
Expand All @@ -72,14 +82,17 @@
display: block;
.panel.graph {
max-width: calc(100% - 180px);
.survey-graph {
width: 100%;
}
}
.panel,
object {
border: 0;
}
// .panel:not(:first-of-type) {
// page-break-before: always;
// }
.panel:not(:first-of-type) {
page-break-before: always;
}
.panel__item {
height: 100%;
// page-break-inside: avoid;
Expand Down

0 comments on commit 704dc87

Please sign in to comment.