fix drag and drop size

This commit is contained in:
blek 2023-11-03 14:50:02 +10:00
parent 72abd4d5bd
commit a685f5db84
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,11 @@
/** @type {HTMLElement} */
const root_drag_rop = document.getElementsByClassName('file-drag-n-drop')[0];
// make the root drag&drop element an ideal circle
root_drag_rop.style.width = root_drag_rop.offsetWidth + 'px';
root_drag_rop.style.height = root_drag_rop.offsetWidth + 'px';
/** @type {HTMLElement} */
const drag_rop = document.getElementsByClassName('file-drag-n-drop-inside')[0];
const dr_rop_t = document.getElementsByClassName('file-drag-n-drop-inside-text')[0];

View File

@ -1,7 +1,7 @@
.file-drag-n-drop {
display: block;
cursor: pointer;
width: 440px;
width: 100%;
height: 440px;
background: var(--header-sec-color);
border-radius: 16px;