fix drag and drop size
This commit is contained in:
parent
c01b4ea73f
commit
4f65ec5229
|
@ -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