fix scrolling to top when tall modal is maximized

This commit is contained in:
nicfreeman1209 2021-03-07 21:55:14 +00:00
parent 60dcd956e2
commit 7fade338ea
4 changed files with 14 additions and 6 deletions

View File

@ -21,9 +21,11 @@
icon="times-circle"
/>
</div>
<div class="slot">
<slot></slot>
</div>
</div>
</div>
</transition>
</template>
@ -83,10 +85,11 @@ export default {
justify-content: center;
line-height: 100%;
}
> .top-right-buttons {
position: absolute;
z-index: 100;
top: 20px;
top: 15px;
right: 20px;
> .top-right-button {
cursor: pointer;
@ -96,6 +99,11 @@ export default {
}
}
}
> .slot {
max-height: 100%;
position: initial;
}
}
.maximized {
@ -107,7 +115,7 @@ export default {
max-height: 100%;
display: flex;
align-content: center;
justify-content: safe center;
justify-content: center;
}
.modal-fade-enter,

View File

@ -157,7 +157,7 @@ export default {
.toggle {
position: absolute;
left: 20px;
top: 20px;
top: 15px;
cursor: pointer;
&:hover {
color: red;

View File

@ -95,7 +95,7 @@ export default {
.toggle {
position: absolute;
left: 20px;
top: 20px;
top: 15px;
cursor: pointer;
&:hover {
color: red;

View File

@ -91,7 +91,7 @@ export default {
.clear {
position: absolute;
left: 20px;
top: 20px;
top: 15px;
cursor: pointer;
&:hover {
color: red;