Skip to content

Commit

Permalink
report(topbar): fix overflowing url (#9497)
Browse files Browse the repository at this point in the history
  • Loading branch information
psybuzz authored and paulirish committed Aug 6, 2019
1 parent 581c0d2 commit a53fb14
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/renderer/report-renderer.js
Expand Up @@ -77,6 +77,7 @@ class ReportRenderer {
const el = this._dom.cloneTemplate('#tmpl-lh-topbar', this._templateContext);
const metadataUrl = /** @type {HTMLAnchorElement} */ (this._dom.find('.lh-topbar__url', el));
metadataUrl.href = metadataUrl.textContent = report.finalUrl;
metadataUrl.title = report.finalUrl;
return el;
}

Expand Down
4 changes: 4 additions & 0 deletions lighthouse-core/report/html/templates.html
Expand Up @@ -245,6 +245,7 @@
width: var(--topbar-logo-size);
height: var(--topbar-logo-size);
user-select: none;
flex: none;
}
.lh-topbar__logo .shape {
fill: var(--report-text-color);
Expand All @@ -254,6 +255,9 @@
margin: var(--topbar-padding);
text-decoration: none;
color: var(--report-text-color);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}

.lh-tools {
Expand Down

0 comments on commit a53fb14

Please sign in to comment.