Browse Source

UI: details-panel and side-panel polish for the new menu layout

Tighten widget-select header, details-panel sticky header padding, rule-chain page split, and rule-chain-select sidebar paddings to fit the slimmer top toolbar introduced with the new menu.
pull/15888/head
Igor Kulikov 3 months ago
parent
commit
88db93cd94
  1. 4
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.html
  2. 31
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.scss
  3. 2
      ui-ngx/src/app/modules/home/components/details-panel.component.html
  4. 1
      ui-ngx/src/app/modules/home/components/details-panel.component.scss
  5. 4
      ui-ngx/src/app/modules/home/home.component.html
  6. 2
      ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.html
  7. 2
      ui-ngx/src/app/shared/components/rule-chain/rule-chain-select.component.scss

4
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.html

@ -16,11 +16,11 @@
--> -->
<div class="tb-dashboard-widget-select"> <div class="tb-dashboard-widget-select">
<mat-toolbar color="primary" class="tb-widget-select-header flex flex-col"> <mat-toolbar class="tb-widget-select-header flex flex-col">
<div class="tb-widget-select-title-row flex flex-row items-center"> <div class="tb-widget-select-title-row flex flex-row items-center">
@if (showTopLevelWidgetModeToggle()) { @if (showTopLevelWidgetModeToggle()) {
<tb-toggle-select class="tb-top-level-widget-mode-toggle" <tb-toggle-select class="tb-top-level-widget-mode-toggle"
appearance="fill-invert" appearance="fill"
[disablePagination]="true" [disablePagination]="true"
[(ngModel)]="selectWidgetMode"> [(ngModel)]="selectWidgetMode">
<tb-toggle-option value="installed" [template]="installedWidgetsOption"></tb-toggle-option> <tb-toggle-option value="installed" [template]="installedWidgetsOption"></tb-toggle-option>

31
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-widget-select.component.scss

@ -35,28 +35,24 @@ tb-dashboard-widget-select {
width: 100%; width: 100%;
height: auto; height: auto;
gap: 16px; gap: 16px;
color: #fff;
padding: 12px 12px 12px 24px; padding: 12px 12px 12px 24px;
button.mat-mdc-icon-button.mat-mdc-button-base { button.mat-mdc-icon-button.mat-mdc-button-base {
--mdc-icon-button-state-layer-size: 40px; --mdc-icon-button-state-layer-size: 40px;
--mat-icon-button-state-layer-size: 40px; --mat-icon-button-state-layer-size: 40px;
--mdc-icon-button-icon-color: #fff;
padding: 8px; padding: 8px;
color: #fff;
} }
} }
.tb-widget-select-title-row { .tb-widget-select-title-row {
gap: 8px; gap: 8px;
width: 100%; width: 100%;
min-height: 40px; min-height: 42px;
.tb-widget-select-title { .tb-widget-select-title {
font-size: 24px; font-size: 24px;
line-height: 32px; line-height: 32px;
font-weight: 400; font-weight: 400;
color: #fff;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -90,11 +86,6 @@ tb-dashboard-widget-select {
} }
} }
} }
&.tb-fill.tb-invert {
.mat-button-toggle.mat-button-toggle-appearance-standard {
color: #FFF;
}
}
} }
} }
} }
@ -106,14 +97,14 @@ tb-dashboard-widget-select {
.tb-widget-select-search { .tb-widget-select-search {
height: 40px; height: 40px;
padding: 8px 12px; padding: 8px 12px;
background: rgba(255, 255, 255, 0.16); background: rgba(0, 0, 0, 0.03);
border: 1px solid rgba(255, 255, 255, 0.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 8px; border-radius: 8px;
caret-color: $tb-primary-color; caret-color: $tb-primary-color;
color: rgba(255, 255, 255, 0.84); color: rgba(0, 0, 0, 0.54);
mat-icon { mat-icon {
color: rgba(255, 255, 255, 0.8); color: rgba(0, 0, 0, 0.54);
} }
input { input {
@ -124,23 +115,22 @@ tb-dashboard-widget-select {
font-size: 16px; font-size: 16px;
line-height: 24px; line-height: 24px;
background: transparent; background: transparent;
color: #fff;
border: none; border: none;
outline: none; outline: none;
&::placeholder { &::placeholder {
color: rgba(255, 255, 255, 0.8); color: rgba(0, 0, 0, 0.54);
opacity: 1; opacity: 1;
} }
} }
button.mat-mdc-icon-button mat-icon { button.mat-mdc-icon-button mat-icon {
color: rgba(255, 255, 255, 0.8); color: rgba(0, 0, 0, 0.54);
} }
&.focus { &.focus {
background: #fff; background: #fff;
border-color: rgba(255, 255, 255, 0.15); border-color: rgba(0, 0, 0, 0.15);
caret-color: $tb-primary-color; caret-color: $tb-primary-color;
mat-icon { mat-icon {
@ -165,14 +155,9 @@ tb-dashboard-widget-select {
} }
.tb-widget-select-sort { .tb-widget-select-sort {
color: #fff;
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
letter-spacing: 0.25px; letter-spacing: 0.25px;
mat-icon {
color: #fff;
}
} }
} }

2
ui-ngx/src/app/modules/home/components/details-panel.component.html

@ -16,7 +16,7 @@
--> -->
<header> <header>
<mat-toolbar class="details-toolbar" color="primary" [style.height]="headerHeightPx+'px'"> <mat-toolbar class="details-toolbar" [style.height]="headerHeightPx+'px'">
<div class="mat-toolbar-tools flex flex-row items-center justify-start" style="height: 100%;"> <div class="mat-toolbar-tools flex flex-row items-center justify-start" style="height: 100%;">
<div class="mat-toolbar-tools tb-details-title-header flex flex-1 flex-col items-start justify-start" [class.!hidden]="showSearchPane"> <div class="mat-toolbar-tools tb-details-title-header flex flex-1 flex-col items-start justify-start" [class.!hidden]="showSearchPane">
<div class="tb-details-title flex flex-row items-center justify-start"> <div class="tb-details-title flex flex-row items-center justify-start">

1
ui-ngx/src/app/modules/home/components/details-panel.component.scss

@ -22,6 +22,7 @@
flex-direction: column; flex-direction: column;
.mat-toolbar.details-toolbar { .mat-toolbar.details-toolbar {
padding: 0; padding: 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
} }
} }

4
ui-ngx/src/app/modules/home/home.component.html

@ -70,18 +70,18 @@
[class.!hidden]="displaySearchMode()" [class.!hidden]="displaySearchMode()"
class="mat-toolbar-tools flex-1"> class="mat-toolbar-tools flex-1">
</tb-breadcrumb> </tb-breadcrumb>
<div [class.!hidden]="!displaySearchMode()" class="tb-dark flex flex-1 flex-row"> <div [class.!hidden]="!displaySearchMode()" class="flex flex-1 flex-row">
<mat-form-field class="tb-appearance-transparent flex-1"> <mat-form-field class="tb-appearance-transparent flex-1">
<input #searchInput matInput <input #searchInput matInput
[formControl]="textSearch" [formControl]="textSearch"
placeholder="{{ 'common.enter-search' | translate }}"/> placeholder="{{ 'common.enter-search' | translate }}"/>
</mat-form-field> </mat-form-field>
</div> </div>
<tb-github-badge class="lt-md:!hidden"></tb-github-badge>
<button [class.!hidden]="!searchEnabled" <button [class.!hidden]="!searchEnabled"
mat-icon-button (click)="openSearch()"> mat-icon-button (click)="openSearch()">
<mat-icon class="material-icons">search</mat-icon> <mat-icon class="material-icons">search</mat-icon>
</button> </button>
<tb-github-badge class="lt-md:!hidden"></tb-github-badge>
@if (fullscreenEnabled) { @if (fullscreenEnabled) {
<button <button
[class.!hidden]="displaySearchMode()" [class.!hidden]="displaySearchMode()"

2
ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.html

@ -27,7 +27,7 @@
#drawer #drawer
opened opened
position="start"> position="start">
<mat-toolbar color="primary" class="tb-dark"> <mat-toolbar>
@if (!isImport) { @if (!isImport) {
<tb-rule-chain-select <tb-rule-chain-select
class="flex-1" class="flex-1"

2
ui-ngx/src/app/shared/components/rule-chain/rule-chain-select.component.scss

@ -21,7 +21,7 @@
width: 100%; width: 100%;
input { input {
color: #fff; color: rgba(0,0,0,0.87);
cursor: pointer; cursor: pointer;
text-overflow: ellipsis; text-overflow: ellipsis;
pointer-events: none; pointer-events: none;

Loading…
Cancel
Save