Skip to content

Conversation

@connorjclark
Copy link
Collaborator

was changed here https://github.com/GoogleChrome/lighthouse/pull/13277/files#diff-477e6952dbf9d1f7c7ee3d88b8513e97b5305c05e9bb90cb7544c63fa22ddcb1L62 . But this results in the rootEl itself being used in CDT which is not a scrollable container (but .lh-container is in CDT and standalone report)

confirmed working in standalone report and CDT.

@connorjclark connorjclark requested a review from a team as a code owner November 12, 2021 00:09
@connorjclark connorjclark requested review from adamraine and removed request for a team November 12, 2021 00:09
@google-cla google-cla bot added the cla: yes label Nov 12, 2021
margin-top: 10px;
text-align: center;
color: var(--report-text-color);
word-break: keep-all;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive by fix
image

@adamraine
Copy link
Contributor

adamraine commented Nov 12, 2021

Hate to pile on but I noticed one more issue with the view trace button:

Screen Shot 2021-11-11 at 7 34 06 PM

Rest of this LGTM

@adamraine
Copy link
Contributor

adamraine commented Nov 12, 2021

Might just do the trick:

.lh-button--trace {
    display: flex;
    align-items: center;
	margin-right: var(--default-padding);
}

// Update sticky header visibility and highlight when page scrolls/resizes.
const scrollParent = this._getScrollParent(this._dom.rootEl);
const scrollParent = this._getScrollParent(
this._dom.find('.lh-container', this._dom.rootEl));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW this._getScrollParent(this.stickyHeaderEl) might be more robust against future changes to the scrollable container. Up to you though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've already verified the previous method still works and would prefer to go with that to continue the release today. Am open to someone/you giving this more consideration later.

padding: var(--default-padding);
font-size: var(--report-font-size-secondary);
line-height: var(--report-line-height-secondary);
margin: 5px;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes this
image

was changed here https://github.com/GoogleChrome/lighthouse/pull/13249/files#diff-32ea75d44d2425272f7c1c7ceb52d47e5c4bb78cb8facbb55495a4d0d7658729R479

margin was important here. Put to 5 instead of the original 10.

fontsize and lineheight seemed to have to effect so I removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now
image

@connorjclark connorjclark changed the title report: fix topbar scrolling for devtools report: fix topbar scrolling and buttons for devtools Nov 12, 2021
@connorjclark connorjclark changed the title report: fix topbar scrolling and buttons for devtools report: fix topbar scrolling, buttons and gauge word breaks for devtools Nov 12, 2021
Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. I have a branch that accomadates a few more devtools integration fixes, but this is great. thank you

@connorjclark connorjclark changed the title report: fix topbar scrolling, buttons and gauge word breaks for devtools report: fix topbar scrolling buttons and gauge word breaks in devtools Nov 12, 2021
@connorjclark connorjclark changed the title report: fix topbar scrolling buttons and gauge word breaks in devtools report: fix scrolling, buttons and gauge word breaks in devtools Nov 12, 2021
@connorjclark connorjclark merged commit 7c165fe into master Nov 12, 2021
@connorjclark connorjclark deleted the dt-scroll branch November 12, 2021 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants