diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/device-gateway-command.component.scss b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/device-gateway-command.component.scss index a1db5c6e7f..24966be34d 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/device-gateway-command.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/device-gateway-command.component.scss @@ -17,16 +17,21 @@ width: 100%; height: 100%; display: block; +} - ::ng-deep .tb-markdown-view .start-code code[class*="language-"], - ::ng-deep .tb-markdown-view .start-code pre[class*="language-"] { - overflow: hidden; - white-space: break-spaces; - word-break: break-all; - } +:host ::ng-deep { + .tb-markdown-view { + .start-code { + code[class*="language-"], pre[class*="language-"] { + overflow: hidden; + white-space: break-spaces; + word-break: break-all; + } - ::ng-deep .tb-markdown-view .start-code .code-wrapper { - padding: 0; + .code-wrapper { + padding: 0; + } + } } } diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.scss b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.scss index 462cc64ec9..1bf599727d 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.scss @@ -81,37 +81,6 @@ text-transform: capitalize; } - ::ng-deep.mat-tab-label-active { - color: white; - opacity: 1; - } - - ::ng-deep.mat-tab-label, ::ng-deep.mat-tab-label-active { - min-width: 50px !important; - padding: 3px !important; - margin: 3px !important; - flex-grow: 1; - } - - ::ng-deep.mat-ink-bar { - height: 100%; - z-index: -10; - border-radius: 5px; - } - - ::ng-deep.pointer-event { - pointer-events: all; - } - - ::ng-deep.mat-mdc-form-field-icon-suffix { - z-index: 100; - } - - ::ng-deep.security-toggle-group span { - padding: 0 25px; - } - - mat-panel-title { display: block; padding-top: 20px; @@ -138,11 +107,37 @@ textarea { resize: none; } +} - @media only screen and (max-width: 750px) { - .mat-expansion-panel-header.mat-expanded { - height: auto; - } +:host ::ng-deep { + .mat-tab-label-active { + color: white; + opacity: 1; + } + + .mat-tab-label, .mat-tab-label-active{ + min-width: 50px !important; + padding: 3px !important; + margin: 3px !important; + flex-grow: 1; + } + + .mat-ink-bar { + height: 100%; + z-index: -10; + border-radius: 5px; + } + + .pointer-event { + pointer-events: all; + } + + .mat-mdc-form-field-icon-suffix { + z-index: 100; + } + + .security-toggle-group span { + padding: 0 25px; } } diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.scss b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.scss index 57a9d5dd34..0a807acb94 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.scss @@ -50,8 +50,6 @@ .mat-mdc-form-field { flex-grow: 1; - //min-width: 200px; - //flex-shrink: 1; } mat-card { @@ -67,9 +65,7 @@ margin: 15px; } - ::ng-deep tb-json-object-edit > div { - flex-grow: 1; - } + .action-btns { margin: 10px 10px 0; @@ -80,3 +76,7 @@ } } +:host ::ng-deep tb-json-object-edit > div { + flex-grow: 1; +} + diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.scss b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.scss index 7676742c78..afdcf9b1f0 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.scss @@ -27,13 +27,9 @@ padding: 0 15px 5px; margin-bottom: 5px; - &>button { + & > button { margin-top: 10px; } - - ::ng-deep.mat-mdc-form-field-icon-suffix { - z-index: 100; - } } .result-block { @@ -41,14 +37,19 @@ display: flex; flex-direction: column; - ::ng-deep.tb-json-content { - height: 100%; - } - - &>span { + & > span { font-weight: 600; } } +} + +:host ::ng-deep { + .tb-json-content { + height: 100%; + } + .mat-mdc-form-field-icon-suffix { + z-index: 100; + } }