-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-1301] add navigation links to StagePage for 3 tables #5121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,6 +194,24 @@ span.additional-metric-title { | |
| color: #777; | ||
| } | ||
|
|
||
| #additional-metrics { | ||
| float: left; | ||
| padding-bottom: 10px; | ||
| } | ||
|
|
||
| #links { | ||
| float: left; | ||
| padding-left: 100px; | ||
| } | ||
|
|
||
| #links a { | ||
| padding-left: 10px; | ||
| } | ||
|
|
||
| .clear { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is unused?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, it's added to the "Summary Metrics …" <h4> element here
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, missed that. |
||
| clear: both; | ||
| } | ||
|
|
||
| /* Hide all additional metrics by default. This is done here rather than using JavaScript to | ||
| * avoid slow page loads for stage pages with large numbers (e.g., thousands) of tasks. */ | ||
| .scheduler_delay, .deserialization_time, .fetch_wait_time, .shuffle_read_remote, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels hacky, layout-wise. Can this be properly laid out in a table or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er, can it simply be at the top under the title?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding has always been that using
<table>s to lay out things that are not tabular but that you merely want to be horizontally adjacent is hacky and should be avoided. If you're adamant I can do it though.I triedy
display: inlinesince that is maybe supposed to directly address this kind of use case:that lets me kill the
clear:bothon the "Summary metrics …" <h4>, but it gets in to trouble when I expand the "additional metrics":re: adding it under the title, it would be nice to not have this push the actual important info on the page further below the fold. There is a preponderance of unused horizontal space on the page currently, and the row it is being added to is a fairly underutilized one since the "additional metrics" dropdown is presumably not frequently engaged with.
Here it is full-screen on my macbook:
The "Summary Metrics …" <h4> is 31% of the way down the screen.
With "additional metrics" open it is 50% of the way down:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shrug using absolute layout and clearing float feels worse than tables, but, the page isn't exactly optimized anyway. It seems like the "jump to" links should be at the top and could just use inline layout like the rest of this, even if it bumps everything down a line. Or... if floating, how about at the top-right to use some of the whitespace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling this "absolute layout" seems misleading, given what
absoluteusually means in this context (e.g.position: absolute). These links are positioned "relatively", to the right of the "additional metrics"<div>, with a fixed amount of padding.I'm also not sure what you mean by "inline layout like the rest of this"; again, "inline" has a specific meaning in CSS, e.g.
display: inline, that I don't think anything else on the page is using. Everything else is basically structured as<div>s and<table>s that aredisplay: blockby default meaning that they don't fall next to each other on the same line but each get their own lines, hence the horizontal wasted space.I'm open to trying something like a
float: rightfor the links, though relative to this that would mostly serve to make them farther away from the LHS where the user's eyes and mouse are likely to start out.Here's a screen fwiw:
Lmk what you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, I'm just referring to "100px right" when I say absolute. It's not positioned absolutely vertically. And "inline" flow meaning, what you'd get just concatenating divs on a page rather than making one float right. That's the wrong term in HTML isn't it? I think "block" is what I'm looking for. I'm neutral on adding this in any event, so will let others pick it up or not.