ENH: HomePage UI Modify

JIRA: none
Change-Id: Id2c83da27312000d482d87f4dda2a5ca20d8be6c
This commit is contained in:
zorro.zhang 2024-11-05 16:44:06 +08:00 committed by Lane.Wei
parent 22de5485cc
commit 29fa56f881
5 changed files with 34 additions and 7 deletions

View File

@ -138,7 +138,7 @@ html,body
}
/*---Print History----*/
.PrintHistoryImg img
.PrintHistoryImg
{
border: 1px solid #474747;
}

View File

@ -108,15 +108,22 @@ body
word-break: break-all;
position: relative;
cursor: pointer;
border-radius: 12px;
overflow: hidden;
}
.PrintHistoryImg
{
border-radius: 12px;
border: 1px solid #EEEEEE;
/* background-color: #E4E4E4;*/
}
.PrintHistoryImg img
{
border-radius: 12px;
width: calc(100% - 2px);
aspect-ratio: 4/3;
object-fit:contain;
border: 1px solid #EEEEEE;
}
.PrintHistoryTextBlock
@ -125,7 +132,8 @@ body
flex-direction: column;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
overflow: hidden;
margin-top: 2px;
}
.PrintHistoryName
@ -224,7 +232,7 @@ body
width: Hug (61px)px;
height: Hug (28px)px;
gap: 10px;
border-radius: 12px 0px 4px 0px;
border-radius: 0px 0px 4px 0px;
opacity: 0px;
color: #FFFFFF;
position: absolute;

View File

@ -59,7 +59,9 @@
{
display:flex;
flex-direction: column;
cursor: pointer;
cursor: pointer;
border-radius: 10px;
overflow: hidden;
}
.HotModel_PrevBlock

View File

@ -439,7 +439,7 @@
</div>
</div>
<div class="PH_Gcode_Icon">Gcode</div>
</div> -->
</div> -->
</div>
</div>

View File

@ -497,7 +497,24 @@ function DisableHotkey( b_CtrlP )
event.preventDefault();
}
}, { passive: false });
DisableDropAction();
}
DisableHotkey();
/*--------Disable Drop Action---------*/
function DisableDropAction()
{
document.addEventListener("dragstart", (event) => {
event.preventDefault();
});
document.addEventListener("dragover", (event) => {
event.preventDefault();
});
document.addEventListener("drop", (event) => {
event.preventDefault();
});
}