top bar 40px to 30px

This commit is contained in:
RossAscends 2023-08-23 16:41:07 +09:00
parent 5474f29f2d
commit 02ce9ba563
2 changed files with 9 additions and 9 deletions

View File

@ -521,7 +521,7 @@ export function dragElement(elmnt) {
}
//prevent resizing from top left into the top bar
if (top < 40 && maxX >= topBarFirstX && left <= topBarFirstX
if (top < 35 && maxX >= topBarFirstX && left <= topBarFirstX
) {
console.debug('prevent topbar underlap resize')
elmnt.css('width', width - 1 + "px");
@ -556,7 +556,7 @@ export function dragElement(elmnt) {
}
//prevent underlap with topbar div
if (top < 40
if (top < 35
&& (maxX >= topBarFirstX && left <= topBarFirstX //elmnt is hitting topbar from left side
|| left <= topBarLastX && maxX >= topBarLastX //elmnt is hitting topbar from right side
|| left >= topBarFirstX && maxX <= topBarLastX) //elmnt hitting topbar in the middle

View File

@ -373,7 +373,7 @@ hr {
left: 0;
right: 0;
display: inline-block;
height: 40px;
height: 35px;
position: absolute;
border-bottom: 1px solid var(--grey30a);
box-shadow: 0 2px 20px 0 var(--black70a);
@ -386,14 +386,14 @@ hr {
#sheld {
display: grid;
grid-template-rows: auto min-content;
height: calc(100vh - 42px);
height: calc(100svh - 42px);
height: calc(100vh - 36px);
height: calc(100svh - 36px);
overflow-x: hidden;
/* max-width: 50vw; */
position: absolute;
left: calc((100vw - var(--sheldWidth))/2);
left: calc((100svw - var(--sheldWidth))/2);
top: 41px;
top: 36px;
margin: 0 auto;
left: 0;
right: 0;
@ -3016,8 +3016,8 @@ a {
#top-settings-holder {
margin: 0 auto;
padding-top: 5px;
height: 40px;
padding-top: 2px;
height: 30px;
/* max-width: var(--sheldWidth); */
justify-content: center;
display: grid;
@ -3039,7 +3039,7 @@ a {
.drawer-icon {
display: inline-block;
cursor: pointer;
font-size: 1.8rem;
font-size: 25px;
}
.drawer-icon.openIcon {