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

View File

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

View File

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

View File

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