Skip to content

Commit 11ebeee

Browse files
authored
Bugfix/small UI fixes (#159)
* make space between elements smaller * fix open icon in elements search autocomplete
1 parent 54df737 commit 11ebeee

File tree

4 files changed

+28
-13
lines changed

4 files changed

+28
-13
lines changed

core/libs/sidebar/src/lib/draggable-element/draggable-element.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
:host {
1515
display: block;
1616
cursor: move;
17+
margin-top: 16px;
1718
}

core/libs/sidebar/src/lib/sidebar-samm-elements/sidebar-samm-elements.component.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
}
3939

4040
.content {
41-
display: grid;
42-
gap: 20px;
43-
margin-top: 28px;
44-
grid-template-columns: 100%;
4541
width: 100%;
4642
height: calc(100% - 75px);
4743
overflow-x: visible;

core/libs/utils/src/lib/components/elements-search/elements-search.component.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@
2020
<mat-autocomplete class="search-autocomplete" #auto="matAutocomplete">
2121
<ng-container *ngFor="let element of elements">
2222
<mat-option class="list-option" *ngIf="element | modelElementParser as parsedElement" (click)="openElement(element)">
23-
<ame-element
24-
[type]="sammElements[parsedElement.type]"
25-
[name]="parsedElement.element.name"
26-
[description]="parsedElement.element.aspectModelUrn"
27-
[disabledTooltipDescriptionLength]="100"
28-
[disabledTooltipNameLength]="60"
29-
size="medium"
30-
></ame-element>
31-
<mat-icon *ngIf="element.isExternalReference() && !element.isPredefined()">open_in_new</mat-icon>
23+
<div [class.has-external-element]="element.isExternalReference() && !element.isPredefined()">
24+
<ame-element
25+
[type]="sammElements[parsedElement.type]"
26+
[name]="parsedElement.element.name"
27+
[description]="parsedElement.element.aspectModelUrn"
28+
[disabledTooltipDescriptionLength]="100"
29+
[disabledTooltipNameLength]="60"
30+
size="medium"
31+
></ame-element>
32+
<div class="align-self-center">
33+
<mat-icon *ngIf="element.isExternalReference() && !element.isPredefined()" class="open-icon">open_in_new</mat-icon>
34+
</div>
35+
</div>
3236
</mat-option>
3337
</ng-container>
3438
</mat-autocomplete>

core/libs/utils/src/lib/components/elements-search/elements-search.component.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,17 @@ $top: 100px;
7070
.list-option {
7171
display: block !important;
7272
}
73+
.open-icon {
74+
margin-top: 10px;
75+
color: #686868;
76+
}
77+
78+
.has-external-element {
79+
display: grid;
80+
justify-content: space-between;
81+
grid-template-columns: 535px 65px;
82+
}
83+
84+
.align-self-center {
85+
align-self: center;
86+
}

0 commit comments

Comments
 (0)