Skip to content
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

[SPARK-10864] [Web UI] app name is hidden if window is resized #9874

Closed
wants to merge 2 commits into from

Conversation

ajbozarth
Copy link
Member

Currently the Web UI navbar has a minimum width of 1200px; so if a window is resized smaller than that the app name goes off screen. The 1200px width seems to have been chosen since it fits the longest example app name without wrapping.

To work with smaller window widths I made the tabs wrap since it looked better than wrapping the app name. This is a distinct change in how the navbar looks and I'm not sure if it's what we actually want to do.

Other notes:

  • min-width set to 600px to keep the tabs from wrapping individually (will need to be adjusted if tabs are added)
  • app name will also wrap (making three levels) if a really really long app name is used

@JoshRosen
Copy link
Contributor

Can you post before and after screenshots?

@srowen
Copy link
Member

srowen commented Nov 21, 2015

This is probably fine but yeah would be good to see screenshots.

@ajbozarth
Copy link
Member Author

Here's a few screenshots. I included a before, an after with the same width as the before, an after right after it wraps and an after at the minimum width.
new-min-width
new-just-wrapped
new-same-width
before

@srowen
Copy link
Member

srowen commented Nov 23, 2015

@ajbozarth the last one is "before" right? I suppose it's an open question whether you want the name to be hidden if the window is narrow rather than wrap the tabs to the next line, but I like the change.

@ajbozarth
Copy link
Member Author

@srowen, yes it put them in reverse order for some reason.

@andrewor14
Copy link
Contributor

ok to test

@SparkQA
Copy link

SparkQA commented Nov 23, 2015

Test build #46552 has finished for PR 9874 at commit 8475980.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Nov 24, 2015

OK by me. The new behavior seems fine and I don't see a downside

@andrewor14
Copy link
Contributor

Thanks, merging into master 1.6.

asfgit pushed a commit that referenced this pull request Nov 25, 2015
Currently the Web UI navbar has a minimum width of 1200px; so if a window is resized smaller than that the app name goes off screen. The 1200px width seems to have been chosen since it fits the longest example app name without wrapping.

To work with smaller window widths I made the tabs wrap since it looked better than wrapping the app name. This is a distinct change in how the navbar looks and I'm not sure if it's what we actually want to do.

Other notes:
- min-width set to 600px to keep the tabs from wrapping individually (will need to be adjusted if tabs are added)
- app name will also wrap (making three levels) if a really really long app name is used

Author: Alex Bozarth <ajbozart@us.ibm.com>

Closes #9874 from ajbozarth/spark10864.

(cherry picked from commit 83653ac)
Signed-off-by: Andrew Or <andrew@databricks.com>
@asfgit asfgit closed this in 83653ac Nov 25, 2015
@ajbozarth ajbozarth deleted the spark10864 branch November 30, 2015 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants