Skip to content
Snippets Groups Projects
Commit 83653ac5 authored by Alex Bozarth's avatar Alex Bozarth Committed by Andrew Or
Browse files

[SPARK-10864][WEB UI] app name is hidden if window is resized

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.
parent 67b67320
No related branches found
No related tags found
No related merge requests found
......@@ -16,14 +16,9 @@
*/
.navbar {
height: 50px;
font-size: 15px;
margin-bottom: 15px;
min-width: 1200px
}
.navbar .navbar-inner {
height: 50px;
min-width: 600px;
}
.navbar .brand {
......@@ -46,6 +41,7 @@
.navbar-text {
height: 50px;
line-height: 3.3;
white-space: nowrap;
}
table.sortable thead {
......
......@@ -210,10 +210,10 @@ private[spark] object UIUtils extends Logging {
<span class="version">{org.apache.spark.SPARK_VERSION}</span>
</a>
</div>
<ul class="nav">{header}</ul>
<p class="navbar-text pull-right">
<strong title={appName}>{shortAppName}</strong> application UI
</p>
<ul class="nav">{header}</ul>
</div>
</div>
<div class="container-fluid">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment