diff --git a/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.scss b/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.scss
index c9ddc17422..86c9000d74 100644
--- a/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.scss
+++ b/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.scss
@@ -15,8 +15,6 @@
*/
@import '../../../../../scss/constants';
-$edit-toolbar-height: 40px !default;
-
tb-widget-editor {
flex: 1;
display: flex;
@@ -173,8 +171,34 @@ div.tb-editor-area-title-panel {
mat-toolbar.tb-edit-toolbar {
- min-height: $edit-toolbar-height !important;
- max-height: $edit-toolbar-height !important;
+ height: 56px;
+ min-height: 56px;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.12);
+
+ & > div {
+ height: 56px;
+ }
+ .mat-toolbar-tools {
+ padding: 0;
+ height: 56px;
+ width: auto;
+ }
+ .tb-breadcrumb-divider {
+ width: 20px;
+ text-align: center;
+ font-size: 16px;
+ line-height: 20px;
+ font-weight: 400;
+ overflow: hidden;
+ color: rgba(0, 0, 0, 0.76);
+ @media #{$mat-lt-md} {
+ display: none;
+ }
+ }
+
+ .mat-divider-vertical {
+ height: 100%;
+ }
button.mat-mdc-button-base:not(.mat-mdc-icon-button) {
font-size: 12px;
@@ -193,19 +217,25 @@ mat-toolbar.tb-edit-toolbar {
}
.mat-mdc-form-field {
+ --mat-form-field-filled-input-text-color: rgba(0,0,0,0.76);
input, .mat-mdc-select {
- font-size: 1.1rem;
+ font-size: 16px;
font-weight: 400;
letter-spacing: .005em;
}
&.tb-widget-title {
- min-width: 250px;
+ width: 250px;
+ @media #{$mat-lt-md} {
+ input {
+ font-size: 24px;
+ }
+ }
}
}
- @media #{$mat-lt-lg} {
+ @media #{$mat-lt-xmd} {
.mat-mdc-form-field.tb-widget-title {
- min-width: 0;
+ width: auto;
}
}
}
diff --git a/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.ts b/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.ts
index c5ff08e3c6..eb420a963b 100644
--- a/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.ts
+++ b/ui-ngx/src/app/modules/home/pages/widget/widget-editor.component.ts
@@ -18,7 +18,6 @@ import { PageComponent } from '@shared/components/page.component';
import {
Component,
ElementRef,
- EventEmitter,
Inject,
OnDestroy,
OnInit,
@@ -74,6 +73,8 @@ import { JsFuncModulesComponent } from '@shared/components/js-func-modules.compo
import { MatIconButton } from '@angular/material/button';
import { formPropertyCompletions } from '@shared/models/dynamic-form.models';
import { CustomTranslatePipe } from '@shared/pipe/custom-translate.pipe';
+import { BreadcrumbService } from '@core/services/breadcrumb.service';
+import { HomeService } from '@core/services/home.service';
import Timeout = NodeJS.Timeout;
// @dynamic
@@ -172,7 +173,7 @@ export class WidgetEditorComponent extends PageComponent implements OnInit, OnDe
hotKeys: Hotkey[] = [];
- updateBreadcrumbs = new EventEmitter();
+ breadcrumbs$ = this.breadcrumbService.breadcrumbs$;
private rxSubscriptions = new Array();
@@ -188,7 +189,9 @@ export class WidgetEditorComponent extends PageComponent implements OnInit, OnDe
private renderer: Renderer2,
private viewContainerRef: ViewContainerRef,
private customTranslate: CustomTranslatePipe,
- private http: HttpClient) {
+ private http: HttpClient,
+ private breadcrumbService: BreadcrumbService,
+ public homeService: HomeService) {
super(store);
this.authUser = getCurrentAuthUser(store);
@@ -221,6 +224,7 @@ export class WidgetEditorComponent extends PageComponent implements OnInit, OnDe
}
ngOnInit(): void {
+ this.homeService.setHideMainToolbar(true);
this.initSplitLayout();
this.initAceEditors();
this.iframe = $(this.widgetIFrameElmRef.nativeElement);
@@ -239,6 +243,10 @@ export class WidgetEditorComponent extends PageComponent implements OnInit, OnDe
this.rxSubscriptions.length = 0;
}
+ toggleSidenav() {
+ this.homeService.toggleSideBar.emit();
+ }
+
private initHotKeys(): void {
this.hotKeys.push(
new Hotkey('ctrl+q', (event: KeyboardEvent) => {
@@ -628,7 +636,6 @@ export class WidgetEditorComponent extends PageComponent implements OnInit, OnDe
this.widget.defaultConfig = JSON.stringify(config);
this.origWidget = deepClone(this.widget);
this.isDirty = false;
- this.updateBreadcrumbs.emit();
}
applyWidgetScript(): void {
diff --git a/ui-ngx/src/app/modules/home/pages/widget/widget-library.module.ts b/ui-ngx/src/app/modules/home/pages/widget/widget-library.module.ts
index 1ff2c6e886..87a07e2567 100644
--- a/ui-ngx/src/app/modules/home/pages/widget/widget-library.module.ts
+++ b/ui-ngx/src/app/modules/home/pages/widget/widget-library.module.ts
@@ -30,6 +30,8 @@ import { WidgetsBundleWidgetsComponent } from '@home/pages/widget/widgets-bundle
import { WidgetTypeAutocompleteComponent } from '@home/pages/widget/widget-type-autocomplete.component';
import { WidgetsBundleDialogComponent } from '@home/pages/widget/widgets-bundle-dialog.component';
import { WidgetConfigComponentsModule } from '@home/components/widget/config/widget-config-components.module';
+import { GithubBadgeModule } from '@home/components/github-badge/github-badge.module';
+import { NotificationBellModule } from '@home/components/notification/notification-bell.module';
@NgModule({
declarations: [
@@ -48,6 +50,8 @@ import { WidgetConfigComponentsModule } from '@home/components/widget/config/wid
CommonModule,
SharedModule,
HomeComponentsModule,
+ GithubBadgeModule,
+ NotificationBellModule,
WidgetConfigComponentsModule,
WidgetLibraryRoutingModule
]