Skip to content

Commit 0e744bf

Browse files
committed
[NAB-327] - Release 2.0.0
- small changes in spacing of field list in form builder
1 parent d1bc535 commit 0e744bf

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

src/app/form-builder/field-list/field-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h3 class="field-list-heading">Data fields</h3>
6161
(click)="addNewField(fieldType.type, component)">
6262
<div class="field-list-mat-list-item-title">
6363
<mat-icon class="icon-color">drag_indicator</mat-icon>
64-
<span>{{shortening(component.title)}}</span>
64+
<span>{{component.title}}</span>
6565
</div>
6666
</mat-list-item>
6767
</mat-expansion-panel>

src/app/form-builder/field-list/field-list.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
.field-list-mat-list-item {
1818
height: 40px;
19-
padding-left: 0;
20-
padding-right: 0;
19+
padding-left: 8px;
20+
padding-right: 4px;
2121
}
2222

2323
.field-list-mat-list-item:hover {

src/app/form-builder/field-list/field-list.component.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,6 @@ export class FieldListComponent implements OnInit, AfterViewInit {
113113
this.dragStartHandler($event, true);
114114
}
115115

116-
shortening(title: string) {
117-
if (title?.length > 10) {
118-
const tmp = title.slice(0, 10);
119-
return tmp + '...';
120-
}
121-
return title;
122-
}
123-
124116
containsSearchExpression(item: DataVariable): boolean {
125117
const search = this.existingFieldsSearchInput.toLocaleLowerCase();
126118
return item.title?.value?.toLocaleLowerCase()?.includes(search)

src/styles.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,20 @@ nab-simulation-mode {
212212
}
213213
}
214214

215+
.field-list-expansion-panel {
216+
.mat-expansion-panel-header {
217+
padding-left: 8px;
218+
padding-right: 4px;
219+
}
220+
.mat-expansion-panel-body {
221+
padding-left: 8px;
222+
padding-right: 4px;
223+
}
224+
.mat-expanded {
225+
margin-bottom: 0;
226+
margin-top: 0;
227+
}
228+
.mat-expansion-panel-header.mat-expanded {
229+
height: 40px;
230+
}
231+
}

0 commit comments

Comments
 (0)