Skip to content

Commit

Permalink
fix scoring summary layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen authored and Amy Chen committed Nov 8, 2023
1 parent 56e78c2 commit 254317e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
18 changes: 10 additions & 8 deletions src/components/report/ScoringSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,16 @@ export default class ScoringSummary extends Component {
(item) => item.ResponsesSummary && item.ResponsesSummary.length > 0
).length === 0;
return (
<table className="table">
<caption>{this.getTitleDisplay()}</caption>
{!noSummaryData && this.renderTableHeaders()}
<tbody>
{noSummaryData && this.renderNoDataRow()}
{!noSummaryData && this.renderDataRows(summary, showAnchorLinks)}
</tbody>
</table>
<React.Fragment>
<div className="panel-title">{this.getTitleDisplay()}</div>
<table className="table">
{!noSummaryData && this.renderTableHeaders()}
<tbody>
{noSummaryData && this.renderNoDataRow()}
{!noSummaryData && this.renderDataRows(summary, showAnchorLinks)}
</tbody>
</table>
</React.Fragment>
);
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/styles/components/_Report.scss
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ $selector-box-shadow: 0 2px 2px #383e40;
padding: 0;
flex: 1 1;
}
&-title {
font-size: 20px;
text-align: left;
}
&__item {
align-self: center;
width: calc(100% - 16px);
Expand All @@ -415,7 +419,7 @@ $selector-box-shadow: 0 2px 2px #383e40;
&.full-width {
width: calc(100% - 16px);
}
padding: 4px 8px 8px;
padding: 8px;

.table {
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/styles/components/_Summary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@
font-weight: 700;
margin-bottom: 8px;
font-size: 20px;
text-align: left;
}
.title {
font-weight: 700;
Expand Down

0 comments on commit 254317e

Please sign in to comment.