Skip to content

Commit f1aa7cd

Browse files
committed
💄 update dots dropdown UI
1 parent 9041773 commit f1aa7cd

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

src/app/shared/dropdowns/dots-dropdown/dots-dropdown.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<i class="bx bx-palette"></i>
1111
<span class="title">Cambiar color</span>
1212
</li>
13-
<li role="menuitem" class='dropdown-item' (click)="downloadFile()">
13+
<li role="menuitem" class='dropdown-item' (click)="downloadFile()" *ngIf="isFile()"> <!-- wait to compress zip -->
1414
<i class="bx bx-download"></i>
1515
<span class="title">Descargar</span>
1616
</li>

src/app/shared/dropdowns/dots-dropdown/dots-dropdown.component.scss

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
align-items: center;
1010
border: none;
1111
border-radius: 50%;
12-
height: 28px;
13-
width: 28px;
12+
height: 2.2rem;
13+
width: 2.2rem;
1414
background: transparent;
1515
transition: 0.4s ease;
1616
cursor: pointer;
@@ -37,6 +37,7 @@ ul {
3737
height: fit-content;
3838
transition: visibility 0.2s, opacity 0.2s linear, bottom 0.2s linear,
3939
box-shadow 0.2s linear;
40+
min-width: 15rem;
4041

4142
&.show {
4243
opacity: 1;
@@ -47,15 +48,14 @@ ul {
4748
}
4849

4950
.dropdown-item {
50-
color: rgba(0, 0, 0, 0.6);
51-
font-weight: bold;
52-
cursor: pointer;
5351
display: flex;
5452
align-items: center;
55-
justify-content: flex-start;
56-
gap: 0.8rem;
57-
padding: 0.6rem 0.8rem;
58-
transition: background-color 0.2s linear, color 0.2s linear;
53+
list-style: none;
54+
height: 50px;
55+
cursor: pointer;
56+
transition: 0.3s ease;
57+
padding: 0 1rem;
58+
gap: 1.2rem;
5959

6060
&:hover {
6161
background-color: #b8c1ce77;
@@ -72,12 +72,20 @@ ul {
7272

7373
&:last-child {
7474
border-radius: 0 0 10px 10px;
75+
76+
&:hover {
77+
background-color: #ff72568c;
78+
}
7579
}
7680

7781
& .title {
78-
@include fs-6;
82+
@include fs-5;
7983
@include fw-400;
8084
color: var(--fc-primary);
85+
text-overflow: ellipsis;
86+
overflow: hidden;
87+
white-space: nowrap;
88+
flex: 1;
8189
}
8290

8391
& i {

src/app/shared/headers/actions/actions.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
& i {
6060
@include fs-4;
61-
@include fw-600;
61+
@include fw-500;
6262
color: var(--fc-primary);
6363
}
6464
}

0 commit comments

Comments
 (0)