Skip to content

Commit 16ebf4e

Browse files
committed
(fix) file progress position
1 parent 6b06916 commit 16ebf4e

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed
Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
.vac-message-files-container {
2-
.vac-file-container {
3-
height: 60px;
4-
width: 60px;
5-
margin: 3px 0 5px;
6-
cursor: pointer;
7-
transition: all 0.6s;
2+
.vac-file-wrapper {
3+
position: relative;
84

9-
&:hover {
10-
opacity: 0.85;
11-
}
5+
.vac-file-container {
6+
height: 60px;
7+
width: 60px;
8+
margin: 3px 0 5px;
9+
cursor: pointer;
10+
transition: all 0.6s;
1211

13-
svg {
14-
height: 30px;
15-
width: 30px;
16-
}
12+
&:hover {
13+
opacity: 0.85;
14+
}
15+
16+
svg {
17+
height: 30px;
18+
width: 30px;
19+
}
1720

18-
&.vac-file-container-progress {
19-
background-color: rgba(0, 0, 0, 0.3);
21+
&.vac-file-container-progress {
22+
background-color: rgba(0, 0, 0, 0.3);
23+
}
2024
}
2125
}
2226
}

src/lib/Message/MessageFiles/MessageFiles.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
</message-file>
1616
</div>
1717

18-
<div v-for="(file, idx) in otherFiles" :key="idx + 'a'">
18+
<div
19+
v-for="(file, idx) in otherFiles"
20+
:key="idx + 'a'"
21+
class="vac-file-wrapper"
22+
>
1923
<progress-bar
2024
v-if="file.progress >= 0"
2125
:progress="file.progress"
22-
:style="{ top: '54px' }"
26+
:style="{ top: '44px' }"
2327
/>
2428
<div
2529
class="vac-file-container"

0 commit comments

Comments
 (0)