@@ -360,7 +371,7 @@
[isReadOnly]="true"
(closeDetails)="onEditWidgetClosed()">
-
+
{{ 'widget.basic-mode' | translate }}
{{ 'widget.advanced-mode' | translate }}
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts
index 39940546c2..3996c1abaf 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts
@@ -191,7 +191,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
}
get hideToolbar(): boolean {
- return (this.hideToolbarValue || this.hideToolbarSetting()) && !this.isEdit;
+ return ((this.hideToolbarValue || this.hideToolbarSetting()) && !this.isEdit) || (this.isEditingWidget || this.isAddingWidget);
}
@Input()
@@ -1177,6 +1177,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
Widget>(AddWidgetDialogComponent, {
disableClose: true,
panelClass: ['tb-dialog', 'tb-fullscreen-dialog'],
+ maxWidth: '95vw',
data: {
dashboard: this.dashboard,
aliasController: this.dashboardCtx.aliasController,
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-toolbar.component.scss b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-toolbar.component.scss
index 0d9ade9bf6..e43132c761 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-toolbar.component.scss
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-toolbar.component.scss
@@ -126,6 +126,7 @@ tb-dashboard-toolbar {
@media #{$mat-lt-md} {
height: $mobile-toolbar-height;
max-height: $mobile-toolbar-height;
+ padding: 0 8px !important;
}
.close-action {
@@ -150,8 +151,44 @@ tb-dashboard-toolbar {
.tb-dashboard-action-panel {
min-width: 0;
height: $half-mobile-toolbar-height;
+ flex: 1 0 auto;
+ display: flex;
+ flex-direction: row-reverse;
+ place-content: center space-between;
+ align-items: center;
+ &.tb-left-panel {
+ flex: 1 1 auto;
+ }
+
+ @media #{$mat-lt-md} {
+ padding-left: 12px;
+ }
+
+ @media #{$mat-xs} {
+ gap: 3px;
+ padding-left: 0;
+ &.tb-left-panel {
+ padding-left: 12px;
+ }
+ }
+
+ @media #{$mat-sm} {
+ gap: 6px;
+ }
+
+ @media #{$mat-md} {
+ gap: 6px;
+ }
+
+ @media #{$mat-gt-md} {
+ gap: 12px;
+ }
@media #{$mat-gt-sm} {
+ place-content: center flex-start;
+ &.tb-left-panel {
+ place-content: center flex-end;
+ }
height: 46px;
}
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.scss b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.scss
index a82f9c2f8b..e86f828111 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.scss
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.scss
@@ -45,6 +45,8 @@
}
.preview {
+ width: 100%;
+ height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: contain;
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.html b/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.html
index a1c8ee6ade..86f069239c 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.html
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.html
@@ -32,26 +32,38 @@
chevron_left
{{ 'action.back' | translate }}
-
-
+
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.scss b/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.scss
index c31f1d5791..9c4e20a7a5 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.scss
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.scss
@@ -16,7 +16,7 @@
:host {
.widget-preview-background {
position: absolute;
- top: 72px;
+ top: 68px;
left: 0;
right: 0;
bottom: 0;
diff --git a/ui-ngx/src/app/modules/home/components/details-panel.component.html b/ui-ngx/src/app/modules/home/components/details-panel.component.html
index 15df7e99e5..748723197f 100644
--- a/ui-ngx/src/app/modules/home/components/details-panel.component.html
+++ b/ui-ngx/src/app/modules/home/components/details-panel.component.html
@@ -21,7 +21,7 @@
-
-
-