Skip to content

Commit ed0cb6a

Browse files
committed
Adjust layout of "add relation" button in relation picker group
1 parent f73f925 commit ed0cb6a

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

desktop/src/app/components/docedit/widgets/relationpicker/relation-picker-group.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
class="circular-button add-relation"
1111
[class.with-margin]="relations[relationDefinition.name]?.length > 0"
1212
type="button"
13-
(click)="createRelation()">+</div>
13+
(click)="createRelation()">
14+
<span class="mdi mdi-plus"></span>
15+
</div>
1416
<div *ngIf="!isPlusButtonAvailable() && relations[relationDefinition.name]?.length > 1"
1517
class="relation-picker-group-space"></div>

desktop/src/app/components/docedit/widgets/relationpicker/relation-picker-group.scss

+20-11
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,33 @@ relation-picker-group {
99

1010
.add-relation {
1111
display: block;
12-
13-
&:hover {
14-
color: #fff !important;
15-
background-color: #28a745;
16-
transition: color .3s ease, background-color .3s ease;
17-
}
18-
}
19-
20-
.add-relation {
12+
width: 35px;
13+
height: 35px;
2114
position: relative !important;
22-
color: #555 !important;
23-
box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(0, 0, 0, 0.14) !important;
2415
user-select: none;
2516
scroll-margin: 10px;
17+
background-color: white;
18+
transition: none !important;
2619

2720
&.with-margin {
2821
margin-top: 5px;
2922
}
23+
24+
.mdi {
25+
position: relative;
26+
bottom: 4px;
27+
font-size: 20px;
28+
color: black;
29+
transition: none !important;
30+
}
31+
32+
&:hover {
33+
background-color: $greenbgr;
34+
35+
.mdi {
36+
color: white;
37+
}
38+
}
3039
}
3140

3241
.relation-picker-group-space {

0 commit comments

Comments
 (0)