Show popup window in full screen at mobile devices
This commit is contained in:
parent
44c3dec9dc
commit
9a22b25564
9 changed files with 18 additions and 9 deletions
|
@ -16,7 +16,7 @@ function Dialog({
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<RawModal
|
<RawModal
|
||||||
className={`${className === null ? '' : `${className} `}dialog-model`}
|
className={`${className === null ? '' : `${className} `}dialog-modal`}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
onAfterOpen={onAfterOpen}
|
onAfterOpen={onAfterOpen}
|
||||||
onAfterClose={onAfterClose}
|
onAfterClose={onAfterClose}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.dialog-model {
|
.dialog-modal {
|
||||||
--modal-height: 656px;
|
--modal-height: 656px;
|
||||||
max-height: min(100%, var(--modal-height));
|
max-height: min(100%, var(--modal-height));
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -58,7 +58,8 @@ function PopupWindow({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RawModal
|
<RawModal
|
||||||
className={`${className === null ? '' : `${className} `}pw-model`}
|
className={`${className === null ? '' : `${className} `}pw-modal`}
|
||||||
|
overlayClassName="pw-modal__overlay"
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
onAfterClose={onAfterClose}
|
onAfterClose={onAfterClose}
|
||||||
onRequestClose={onRequestClose}
|
onRequestClose={onRequestClose}
|
||||||
|
|
|
@ -1,9 +1,18 @@
|
||||||
@use '../../partials/dir';
|
@use '../../partials/dir';
|
||||||
|
@use '../../partials/screen';
|
||||||
|
|
||||||
.pw-model {
|
.pw-modal {
|
||||||
--modal-height: 774px;
|
--modal-height: 774px;
|
||||||
max-height: var(--modal-height) !important;
|
max-height: var(--modal-height) !important;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
@include screen.smallerThan(mobileBreakpoint) {
|
||||||
|
--modal-height: 100%;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
&__overlay {
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.pw {
|
.pw {
|
||||||
|
|
|
@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
|
||||||
import './RoomTile.scss';
|
import './RoomTile.scss';
|
||||||
|
|
||||||
import { twemojify } from '../../../util/twemojify';
|
import { twemojify } from '../../../util/twemojify';
|
||||||
import { sanitizeText } from '../../../util/sanitize';
|
|
||||||
|
|
||||||
import colorMXID from '../../../util/colorMXID';
|
import colorMXID from '../../../util/colorMXID';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import Text from '../../atoms/text/Text';
|
||||||
function DragDrop({ isOpen }) {
|
function DragDrop({ isOpen }) {
|
||||||
return (
|
return (
|
||||||
<RawModal
|
<RawModal
|
||||||
className="drag-drop__model"
|
className="drag-drop__modal"
|
||||||
overlayClassName="drag-drop__overlay"
|
overlayClassName="drag-drop__overlay"
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
>
|
>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.drag-drop__model {
|
.drag-drop__modal {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
|
|
@ -199,7 +199,7 @@ function Search() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RawModal
|
<RawModal
|
||||||
className="search-dialog__model dialog-model"
|
className="search-dialog__modal dialog-modal"
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
onAfterOpen={handleAfterOpen}
|
onAfterOpen={handleAfterOpen}
|
||||||
onAfterClose={handleAfterClose}
|
onAfterClose={handleAfterClose}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@use '../../partials/dir';
|
@use '../../partials/dir';
|
||||||
|
|
||||||
.search-dialog__model {
|
.search-dialog__modal {
|
||||||
--modal-height: 380px;
|
--modal-height: 380px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: var(--bg-surface);
|
background-color: var(--bg-surface);
|
||||||
|
|
Loading…
Reference in a new issue