Fix drag and drop size #16

Merged
blek merged 1 commits from fix-dragndrop-size into 0.2-dev 2023-11-03 05:51:18 +01:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit a685f5db84 - Show all commits

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;