Fixed minimize button scrolling up with the tab

This commit is contained in:
thepaperpilot 2021-09-04 22:46:06 -05:00
parent 59a1b171dc
commit 8842da90ec
2 changed files with 9 additions and 6 deletions

View file

@ -295,9 +295,9 @@ export default defineComponent({
} }
.minimize { .minimize {
position: absolute; position: sticky;
top: 6px; top: 6px;
right: 16px; right: 9px;
z-index: 7; z-index: 7;
line-height: 30px; line-height: 30px;
width: 30px; width: 30px;
@ -309,11 +309,14 @@ export default defineComponent({
font-size: 40px; font-size: 40px;
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
margin-top: -44px;
margin-right: -30px;
} }
.minimized + .minimize { .minimized + .minimize {
transform: rotate(-90deg); transform: rotate(-90deg);
top: 10px; top: 10px;
right: 18px;
} }
.goBack { .goBack {

View file

@ -57,10 +57,10 @@ export default defineComponent({
.sticky { .sticky {
position: sticky; position: sticky;
background: var(--background); background: var(--background);
margin-left: -7px; margin-left: -10px;
margin-right: -7px; margin-right: -10px;
padding-left: 7px; padding-left: 10px;
padding-right: 7px; padding-right: 10px;
z-index: 3; z-index: 3;
} }