Skip to content

Commit

Permalink
A batch of UI glitches fixes (#1264)
Browse files Browse the repository at this point in the history
1. Logs view scrolling didin't work on safari
2. Menu on IE was being compresses
3. Changed logs view font to regular one
  • Loading branch information
bryk committed Sep 20, 2016
1 parent 4b8b213 commit fa75a2a
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"angular": "~1.5.7",
"angular-animate": "~1.5.7",
"angular-aria": "~1.5.7",
"angular-material": "~1.1.0",
"angular-material": "~1.1.1",
"angular-messages": "~1.5.7",
"angular-ui-router": "~0.3.1",
"angular-resource": "~1.5.7",
Expand Down
6 changes: 3 additions & 3 deletions src/app/frontend/chrome/chrome.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ <h2 class="kd-logo-menu" flex="none">
</div>
</md-toolbar>

<md-content layout="row" class="kd-app-content">
<md-content layout="row" class="kd-app-entire-content" flex="auto">
<kd-nav flex="none"></kd-nav>
<md-content flex="auto" class="kd-app-content" style="overflow-y: auto;">
<div ng-switch="$ctrl.loading" flex="auto" class="kd-content-div">
<md-content flex="auto" class="kd-main-content-box">
<div ng-switch="$ctrl.loading" class="kd-content-div kd-main-content-div">
<div ng-switch-when="true" class="kd-spinner">
<md-progress-circular ng-if="$ctrl.showLoadingSpinner" md-mode="indeterminate"
md-diameter="48">
Expand Down
22 changes: 17 additions & 5 deletions src/app/frontend/chrome/chrome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@
height: 100%;
}

.kd-main-content-div {
height: 100%;
position: absolute;
width: 100%;
}

.kd-main-content-box {
background-color: transparent;
overflow-y: auto;
}

.kd-spinner {
align-content: center;
align-items: center;
Expand All @@ -49,10 +60,16 @@
}

body,
.kd-app-entire-content {
background-color: $body;
max-height: 100%;
}

.kd-app-content {
background-color: $body;
height: 100%;
max-height: 100%;
position: relative;
}

a {
Expand All @@ -78,11 +95,6 @@ a {
padding-left: $baseline-grid;
}

.kd-app-content {
background-color: $body;
position: relative;
}

.kd-text-icon {
font-size: inherit;
height: inherit;
Expand Down
2 changes: 1 addition & 1 deletion src/app/frontend/chrome/nav/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<md-sidenav md-is-locked-open="$ctrl.isVisible" class="kd-nav">
<md-sidenav md-is-locked-open="$ctrl.isVisible" class="kd-nav" layout="column">
<div class="kd-nav-group">
<kd-nav-item class="kd-nav-group-item" state="{{::$ctrl.states.admin}}">{{::$ctrl.i18n.MSG_NAV_MENU_ADMIN}}</kd-nav-item>
<kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.namespace}}">{{::$ctrl.i18n.MSG_NAV_MENU_NAMESPACES}}</kd-nav-item>
Expand Down
5 changes: 3 additions & 2 deletions src/app/frontend/chrome/nav/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
width: $nav-width;

&.md-closed {
// Remove "!important" when https://github.com/angular/material/issues/9425 is fixed
&.md-locked-open-add-active {
min-width: $nav-width;
width: $nav-width;
min-width: $nav-width !important;
width: $nav-width !important;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/frontend/logs/logs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $logs-color-white: #fff;

.kd-log-view {
flex: 1;
font-family: $font-family-medium-monospace;
font-family: $font-family-monospace;
width: 100%;
}

Expand Down

0 comments on commit fa75a2a

Please sign in to comment.