ENH: HomePage UI Modify
JIRA: none Change-Id: Id2c83da27312000d482d87f4dda2a5ca20d8be6c
This commit is contained in:
parent
22de5485cc
commit
29fa56f881
|
@ -138,7 +138,7 @@ html,body
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---Print History----*/
|
/*---Print History----*/
|
||||||
.PrintHistoryImg img
|
.PrintHistoryImg
|
||||||
{
|
{
|
||||||
border: 1px solid #474747;
|
border: 1px solid #474747;
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,15 +108,22 @@ body
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
border-radius: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.PrintHistoryImg
|
||||||
|
{
|
||||||
|
border-radius: 12px;
|
||||||
|
border: 1px solid #EEEEEE;
|
||||||
|
/* background-color: #E4E4E4;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.PrintHistoryImg img
|
.PrintHistoryImg img
|
||||||
{
|
{
|
||||||
border-radius: 12px;
|
|
||||||
width: calc(100% - 2px);
|
width: calc(100% - 2px);
|
||||||
aspect-ratio: 4/3;
|
aspect-ratio: 4/3;
|
||||||
object-fit:contain;
|
object-fit:contain;
|
||||||
border: 1px solid #EEEEEE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.PrintHistoryTextBlock
|
.PrintHistoryTextBlock
|
||||||
|
@ -126,6 +133,7 @@ body
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.PrintHistoryName
|
.PrintHistoryName
|
||||||
|
@ -224,7 +232,7 @@ body
|
||||||
width: Hug (61px)px;
|
width: Hug (61px)px;
|
||||||
height: Hug (28px)px;
|
height: Hug (28px)px;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
border-radius: 12px 0px 4px 0px;
|
border-radius: 0px 0px 4px 0px;
|
||||||
opacity: 0px;
|
opacity: 0px;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -60,6 +60,8 @@
|
||||||
display:flex;
|
display:flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
border-radius: 10px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.HotModel_PrevBlock
|
.HotModel_PrevBlock
|
||||||
|
|
|
@ -439,7 +439,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="PH_Gcode_Icon">Gcode</div>
|
<div class="PH_Gcode_Icon">Gcode</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -497,7 +497,24 @@ function DisableHotkey( b_CtrlP )
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}, { passive: false });
|
}, { passive: false });
|
||||||
|
|
||||||
|
DisableDropAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
DisableHotkey();
|
DisableHotkey();
|
||||||
|
|
||||||
|
/*--------Disable Drop Action---------*/
|
||||||
|
function DisableDropAction()
|
||||||
|
{
|
||||||
|
document.addEventListener("dragstart", (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener("dragover", (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener("drop", (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue