Skip to content

Commit 1ad9e2a

Browse files
authored
Merge pull request #1352 from utmstack/backlog/feat_child_alerts
fix(alert-management): improved echoes button styles
2 parents 3faa884 + 8782e44 commit 1ad9e2a

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

frontend/src/app/data-management/alert-management/shared/components/alert-action-select/alert-action-select.component.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,6 @@
231231
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
232232
transform: translateY(-1px);
233233
}
234+
i{
235+
font-size: 12px;
236+
}
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
<div class="d-flex justify-content-between align-items-center h-100 w-100 small-md-icon">
2-
<div class="list-icons">
31
<button
42
(click)="onToggleExpand()"
5-
class="btn-expand d-flex flex-row justify-items-center"
3+
class="btn-expand d-flex w-fit h-100 gap-3 justify-items-center p-1 pl-2 justify-content-between rounded-lg"
64
[disabled]="loadingChildren"
75
[ngbTooltip]="alert.hasChildren?(alert.expanded ? 'Collapse' : 'View echoes'):'No echoes'"
6+
[ngClass]="alert.hasChildren?'pr-0':'pr-2'"
87
container="body"
98
placement="top">
10-
<i class="!top-0" *ngIf="alert.hasChildren" [ngClass]="loadingChildren && alert.expanded ? 'icon-spinner2 spinner' : alert.expanded ? 'icon-arrow-down32' : 'icon-arrow-right32'"></i>
119
<span>Echoes</span>
12-
<small class="text-xs">{{ alert.echoes }}</small>
10+
<span class="text-xs my-auto h-fit ">{{ alert.echoes }}</span>
11+
<i class="top-0 w-fit" *ngIf="alert.hasChildren" [ngClass]="loadingChildren && alert.expanded ? 'icon-spinner2 spinner' : alert.expanded ? 'icon-arrow-down32' : 'icon-arrow-right32'"></i>
1312
</button>
14-
</div>
15-
</div>
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
.btn-expand {
2-
display: inline-flex;
3-
align-items: center;
4-
gap: 6px;
5-
padding: 6px 12px;
6-
height: 33.07px;
7-
border: 1px solid #0277bd;
8-
border-radius: 4px;
2+
border: 1px solid #004b8b;
93
background-color: white;
10-
color: #0277bd ;
11-
font-size: 14px;
12-
font-weight: 500;
4+
color: #004b8b ;
135
cursor: pointer;
146
transition: all 0.2s ease-in-out;
15-
white-space: nowrap;
7+
gap:0.3rem;
8+
}
9+
10+
.text-xs{
11+
font-size:0.58rem !important;
1612
}
1713

14+
15+
1816
.btn-expand:hover:not(:disabled) {
19-
background-color: #0277bd ;
17+
background-color: #004b8b ;
2018
color: white;
21-
border-color: #0277bd ;
19+
border-color: #004b8b ;
2220
}
2321

2422
.btn-expand:active:not(:disabled) {
25-
background-color: #0277bd ;
23+
background-color: #004b8b ;
2624
border-color: #004b8a;
2725
transform: scale(0.98);
2826
}
@@ -34,8 +32,9 @@
3432

3533
.btn-expand i {
3634
font-size: 12px;
37-
display: inline-flex;
35+
display: flex;
3836
align-items: center;
37+
align-content: right;
3938
}
4039

4140
.btn-expand .spinner {
@@ -52,3 +51,4 @@
5251
width: 70px;
5352
height: 32px;
5453
}
54+

0 commit comments

Comments
 (0)