fix drag and drop size
This commit is contained in:
parent
72abd4d5bd
commit
a685f5db84
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
/** @type {HTMLElement} */
|
/** @type {HTMLElement} */
|
||||||
const root_drag_rop = document.getElementsByClassName('file-drag-n-drop')[0];
|
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} */
|
/** @type {HTMLElement} */
|
||||||
const drag_rop = document.getElementsByClassName('file-drag-n-drop-inside')[0];
|
const drag_rop = document.getElementsByClassName('file-drag-n-drop-inside')[0];
|
||||||
const dr_rop_t = document.getElementsByClassName('file-drag-n-drop-inside-text')[0];
|
const dr_rop_t = document.getElementsByClassName('file-drag-n-drop-inside-text')[0];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.file-drag-n-drop {
|
.file-drag-n-drop {
|
||||||
display: block;
|
display: block;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 440px;
|
width: 100%;
|
||||||
height: 440px;
|
height: 440px;
|
||||||
background: var(--header-sec-color);
|
background: var(--header-sec-color);
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
|
Loading…
Reference in New Issue