Adjust filter-panel chips display

- Allow setting a class in scrm-panel
- Adjust height in filter panel do display the same as other inputs
- Adjust input width to avoid breaking to new line
- Remove paddings from tag
This commit is contained in:
Clemente Raposo 2021-01-02 20:25:55 +00:00 committed by Dillon-Brown
parent 8eff4e16b7
commit bbbd78ead4
6 changed files with 30 additions and 4 deletions

View file

@ -1,5 +1,6 @@
<scrm-panel [title]="appStrings['LBL_BASIC_FILTER'] || ''"
[close]="closeButton"
klass="filter-panel"
*ngIf="(vm$ | async) as vm">
<span panel-header-button>

View file

@ -1,4 +1,4 @@
<div [class.collapsed]="isCollapsed" class="card panel-card">
<div [class.collapsed]="isCollapsed" class="card panel-card {{klass}}">
<div class="card-header d-flex justify-content-between align-items-center">

View file

@ -8,7 +8,7 @@ import {Button, ButtonInterface} from '@components/button/button.model';
})
export class PanelComponent implements OnInit {
@Input() klass: string;
@Input() klass = '';
@Input() bodyPadding = 2;
@Input() title: string;
@Input() mode: 'collapsible' | 'closable' | 'none' = 'closable';

View file

@ -1,6 +1,8 @@
tag-input tag {
margin-top: 0 !important;
padding: 0 0.5rem 0 .7rem !important;
line-height: 32px !important;
line-height: 30px !important;
height: 30px !important;
background-color: $light-grey !important;
}
@ -8,6 +10,10 @@ tag-input tag delete-icon:hover {
transform: none !important;
}
tag-input-form form input.ng2-tag-input__text-input {
height: 30px !important;
}
tag-input tag delete-icon span {
background-color: $shell-grey;
border-radius: 50%;
@ -35,7 +41,7 @@ tag-input tag delete-icon span svg path {
}
tag-input-form {
width: 100%;
flex-grow: 1;
}
.ng2-dropdown-menu {

View file

@ -0,0 +1,18 @@
.filter-panel scrm-field .ng2-tag-input {
padding: 0 !important;
min-height: 30px;
}
.filter-panel scrm-field .ng2-tag-input .ng2-tags-container tag {
margin-bottom: 2px !important;
line-height: 27px !important;
height: 27px !important;
}
tag-input tag {
padding: 0 0.5rem 0 .7rem !important;
line-height: 30px !important;
height: 30px !important;
background-color: $light-grey !important;
}

View file

@ -24,6 +24,7 @@
@import 'components/widget';
@import 'components/widget-bar';
@import 'components/chips';
@import 'components/filter-panel';
@import 'layout/panel';
@import 'layout/actionbar';