Skip to content

Commit

Permalink
normal word break for dispaly text
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed May 22, 2019
1 parent db2e963 commit 783283a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lighthouse-core/report/html/report-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@

.lh-audit__display-text {
flex: 1;
word-break: normal;
}

/* Prepend display text with em dash separator. But not in Opportunities. */
Expand Down
4 changes: 4 additions & 0 deletions lighthouse-core/scripts/build-report-for-autodeployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ lhr.categories['lighthouse-plugin-someplugin'] = {
auditRefs: [],
};

// Make opprotunities estimated savings longer to test word break behavior.
// @ts-ignore - details are defined.
lhr.audits['render-blocking-resources'].details.overallSavingsMs = 12345; // 12.35 s

console.log('🕒 Generating report for sample_v2.json...');
const html = ReportGenerator.generateReport(lhr, 'html');
const filename = path.join(__dirname, '../../dist/index.html');
Expand Down

0 comments on commit 783283a

Please sign in to comment.