modal: remove use of important
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/653/head
parent
6dfdefb56c
commit
ef1bfac8ba
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<NcModal
|
<NcModal
|
||||||
|
class="memories-modal"
|
||||||
:size="size"
|
:size="size"
|
||||||
:outTransition="true"
|
:outTransition="true"
|
||||||
:style="{ width: isSidebarShown ? `calc(100% - ${sidebarWidth}px)` : null }"
|
:style="{ width: isSidebarShown ? `calc(100% - ${sidebarWidth}px)` : null }"
|
||||||
|
@ -138,16 +139,13 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
// Patch the NcModal to have dynamic height on mobile
|
|
||||||
@media (max-width: 512px) {
|
@media (max-width: 512px) {
|
||||||
.modal-wrapper .modal-container {
|
.memories-modal:deep .modal-wrapper > .modal-container {
|
||||||
max-height: calc(100% - var(--header-height)) !important;
|
max-height: calc(100% - var(--header-height));
|
||||||
height: unset !important;
|
height: unset;
|
||||||
top: unset !important;
|
top: unset;
|
||||||
bottom: 0 !important;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue