From f175046bc10b7c89ae73dfce9eb4b59b5cbdde7a Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Mon, 22 Apr 2019 16:04:35 +0200 Subject: [PATCH] Dashboard: Minor settings UI Update (#16669) * removed settings header in aside, added header next to search button, tweaked paddings * Minor tweak --- .../src/themes/_variables.light.scss.tmpl.ts | 2 +- .../features/dashboard/components/DashNav/DashNav.tsx | 5 +++++ .../components/DashboardSettings/template.html | 5 ----- public/sass/_variables.light.generated.scss | 2 +- public/sass/components/_dashboard_settings.scss | 10 +++++++--- public/sass/components/_navbar.scss | 9 +++++++++ 6 files changed, 23 insertions(+), 10 deletions(-) diff --git a/packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts b/packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts index 671e0376f53..96b2936354c 100644 --- a/packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts +++ b/packages/grafana-ui/src/themes/_variables.light.scss.tmpl.ts @@ -196,7 +196,7 @@ $input-color-select-arrow: $gray-1; $placeholderText: $gray-2; // search -$search-shadow: 0 5px 30px 0 $gray-4; +$search-shadow: 0 1px 5px 0 $gray-5; $search-filter-box-bg: $gray-7; // Typeahead diff --git a/public/app/features/dashboard/components/DashNav/DashNav.tsx b/public/app/features/dashboard/components/DashNav/DashNav.tsx index 4b29b01bb06..cf82453cfa7 100644 --- a/public/app/features/dashboard/components/DashNav/DashNav.tsx +++ b/public/app/features/dashboard/components/DashNav/DashNav.tsx @@ -146,6 +146,7 @@ export class DashNav extends PureComponent { + {this.isSettings &&  / Settings}
); @@ -155,6 +156,10 @@ export class DashNav extends PureComponent { return this.props.editview || this.props.isFullscreen; } + get isSettings() { + return this.props.editview; + } + renderBackButton() { return (
diff --git a/public/app/features/dashboard/components/DashboardSettings/template.html b/public/app/features/dashboard/components/DashboardSettings/template.html index d177ec3eda2..b630c6e81bd 100644 --- a/public/app/features/dashboard/components/DashboardSettings/template.html +++ b/public/app/features/dashboard/components/DashboardSettings/template.html @@ -1,9 +1,4 @@