Просмотр исходного кода

add grw-presentation-modal-expanded

yohei0125 3 лет назад
Родитель
Сommit
f8f918dfbf

+ 1 - 1
packages/app/src/components/PagePresentationModal.jsx

@@ -17,7 +17,7 @@ const PagePresentationModal = () => {
       isOpen={presentationData.isOpened}
       isOpen={presentationData.isOpened}
       toggle={closePresentationModal}
       toggle={closePresentationModal}
       data-testid="page-presentation-modal"
       data-testid="page-presentation-modal"
-      className={`grw-presentation-modal ${styles['grw-presentation-modal']}`}
+      className={`grw-presentation-modal ${styles['grw-presentation-modal']} grw-presentation-modal-expanded`}
       unmountOnClose={false}
       unmountOnClose={false}
     >
     >
       <ModalBody className="modal-body">
       <ModalBody className="modal-body">

+ 0 - 4
packages/app/src/components/PagePresentationModal.module.scss

@@ -1,8 +1,4 @@
-@use '~/styles/mixins' as mi;
-
 .grw-presentation-modal :global {
 .grw-presentation-modal :global {
-  @include mi.expand-modal-fullscreen(false, false);
-
   .modal-body {
   .modal-body {
     background: black;
     background: black;
 
 

+ 5 - 0
packages/app/src/styles/_modal.scss

@@ -29,3 +29,8 @@
 .modal-dialog.grw-modal-expanded {
 .modal-dialog.grw-modal-expanded {
   @include expand-modal-fullscreen(true, true);
   @include expand-modal-fullscreen(true, true);
 }
 }
+
+// expanded window layout for grw-presentation-modal
+.modal-dialog.grw-presentation-modal-expanded {
+  @include expand-modal-fullscreen(false, false);
+}

+ 1 - 1
packages/app/src/styles/style-next.scss

@@ -57,8 +57,8 @@
 @import 'on-edit';
 @import 'on-edit';
 // @import 'page-duplicate-modal';
 // @import 'page-duplicate-modal';
 @import 'page_list';
 @import 'page_list';
-@import 'page-accessories-control';
 @import 'page-accessories-modal';
 @import 'page-accessories-modal';
+
 // @import 'page-path';
 // @import 'page-path';
 // @import 'page-tree';
 // @import 'page-tree';
 // @import 'page';
 // @import 'page';