Skip to content

Commit f02f9c1

Browse files
committed
Update FileInputDefaultHoverModal
1 parent 45d519e commit f02f9c1

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/components/FileInputDefaultHoverModal.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,29 @@ defineProps<{
1111
data-component="FileInputDefaultHoverModal"
1212
class="file-input-hover-modal"
1313
:class="{'drop-hover': state.private.dropHover.value}"
14-
></div>
14+
>
15+
<div class="bottom-shadow"></div>
16+
</div>
1517
</template>
1618

1719
<style scoped>
1820
.file-input-hover-modal {
19-
height: 50px;
21+
height: 100%;
2022
width: 100%;
2123
position: fixed;
22-
bottom: 0;
23-
left: 0;
2424
pointer-events: none;
25-
background-image: linear-gradient(to top, rgba(0,0,0,0.15), rgba(0,0,0,0.005));
26-
2725
transition: opacity 0.25s ease-out;
2826
opacity: 0;
2927
}
3028
.file-input-hover-modal.drop-hover {
3129
opacity: 1;
3230
}
31+
.file-input-hover-modal .bottom-shadow {
32+
position: fixed;
33+
bottom: 0;
34+
left: 0;
35+
height: 50px;
36+
width: 100%;
37+
background-image: linear-gradient(to top, rgba(0,0,0,0.15), rgba(0,0,0,0.005));
38+
}
3339
</style>

src/components/FileInputSelectedInfo.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<span class="file-size" :title="file.size.toString()">{{bytesToSizeWinLike(file.size)}}</span>
66
<span class="file-mtime" v-if="file.mtime">{{dateToDayDateTimeString(file.mtime, false)}}</span>
77
</span>
8+
<span v-else-if="state.private.dropHover.value">Drop it</span>
89
<span v-else>No file selected</span>
910
</span>
1011
</template>

0 commit comments

Comments
 (0)