restore drag preview

This commit is contained in:
2025-11-10 22:39:29 +01:00
parent 0a1416ef92
commit 992d7038e5
2 changed files with 82 additions and 17 deletions
+6 -7
View File
@@ -17,7 +17,7 @@
z-index: 9999;
}
.document-drag-preview__thumb {
.document-drag-preview__item {
position: absolute;
top: 50%;
left: 50%;
@@ -38,23 +38,23 @@
transform-origin: center;
}
.document-drag-preview__thumb--image {
.document-drag-preview__item--image {
background-color: #000;
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
.document-drag-preview__thumb .document-thumbnail,
.document-drag-preview__thumb img {
.document-drag-preview__item .document-thumbnail,
.document-drag-preview__item img {
width: 100%;
height: 100%;
object-fit: cover;
pointer-events: none;
}
.document-drag-preview__thumb .thumb-placeholder,
.document-drag-preview__thumb .thumb-placeholder * {
.document-drag-preview__item .thumb-placeholder,
.document-drag-preview__item .thumb-placeholder * {
width: 100%;
height: 100%;
display: flex;
@@ -332,4 +332,3 @@
width: 1rem;
height: 1rem;
}