- {{yield to="aboveHeader"}}
- {{#if
- (and
- (not @hideHeader)
- (or
- this.dismissable
- @title
- (has-block "headerBelowTitle")
- (has-block "headerAboveTitle")
- )
+
+ {{yield to="aboveHeader"}}
+
+ {{#if
+ (and
+ (not @hideHeader)
+ (or
+ this.dismissable
+ @title
+ (has-block "headerBelowTitle")
+ (has-block "headerAboveTitle")
)
- }}
-
+ )
+ }}
+
- {{yield to="headerAboveTitle"}}
+ {{yield to="headerAboveTitle"}}
- {{#if @title}}
-
-
{{@title}}
+ {{#if @title}}
+
+
{{@title}}
- {{#if @subtitle}}
-
{{@subtitle}}
- {{/if}}
+ {{#if @subtitle}}
+
{{@subtitle}}
+ {{/if}}
- {{yield to="belowModalTitle"}}
-
- {{/if}}
- {{yield to="headerBelowTitle"}}
+ {{yield to="belowModalTitle"}}
+
+ {{/if}}
+ {{yield to="headerBelowTitle"}}
- {{#if this.dismissable}}
-
- {{/if}}
-
- {{/if}}
-
- {{yield to="belowHeader"}}
-
- {{this.validateFlashType @flashType}}
- {{#if @flash}}
-
- {{~@flash~}}
-
- {{/if}}
-
-
- {{#if (has-block "body")}}
- {{yield to="body"}}
- {{else}}
- {{yield}}
+ {{#if this.dismissable}}
+
{{/if}}
+ {{/if}}
- {{#if (has-block "footer")}}
-
+ {{yield to="belowHeader"}}
+
+ {{this.validateFlashType @flashType}}
+ {{#if @flash}}
+
+ {{~@flash~}}
+
+ {{/if}}
+
+
+ {{#if (has-block "body")}}
+ {{yield to="body"}}
+ {{else}}
+ {{yield}}
{{/if}}
-
- {{yield to="belowFooter"}}
+
+ {{#if (has-block "footer")}}
+
+ {{/if}}
+
+ {{yield to="belowFooter"}}
{{#unless @inline}}
diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss
index 2153b2fbe68..e2f34a2be36 100644
--- a/app/assets/stylesheets/common/base/modal.scss
+++ b/app/assets/stylesheets/common/base/modal.scss
@@ -3,23 +3,21 @@
.d-modal {
pointer-events: none; // Allow clicks through wrappers so they hit the adjacent backdrop element
- &__wrapper {
- display: flex;
- align-items: center;
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- z-index: z("modal", "content");
- overflow: auto;
+ display: flex;
+ align-items: center;
+ width: 100%;
+ height: 100%;
+ position: fixed;
+ top: 0;
+ z-index: z("modal", "content");
+ overflow: auto;
- .-inline & {
- position: relative;
- }
+ &.-inline {
+ position: relative;
+ }
- html.keyboard-visible body.ios-safari-composer-hacks & {
- height: calc(var(--composer-vh, 1vh) * 100);
- }
+ html.keyboard-visible body.ios-safari-composer-hacks & {
+ height: calc(var(--composer-vh, 1vh) * 100);
}
&__container {
diff --git a/app/assets/stylesheets/common/modal/modal-overrides.scss b/app/assets/stylesheets/common/modal/modal-overrides.scss
index 67d4040fa56..be8218928db 100644
--- a/app/assets/stylesheets/common/modal/modal-overrides.scss
+++ b/app/assets/stylesheets/common/modal/modal-overrides.scss
@@ -266,9 +266,7 @@
.d-modal.chat-modal-new-message {
.d-modal {
- &__wrapper {
- align-items: flex-start;
- }
+ align-items: flex-start;
&__container {
width: var(--modal-max-width);
margin-top: 1rem;
diff --git a/app/assets/stylesheets/mobile/modal.scss b/app/assets/stylesheets/mobile/modal.scss
index 4e22e672194..a719e5b67ff 100644
--- a/app/assets/stylesheets/mobile/modal.scss
+++ b/app/assets/stylesheets/mobile/modal.scss
@@ -5,9 +5,6 @@
width: 100%;
max-width: 100%;
}
- .modal-inner-container {
- width: 100%;
- }
}
//legacy
diff --git a/spec/system/page_objects/modals/base.rb b/spec/system/page_objects/modals/base.rb
index 42b59667ffa..a676e7a87d2 100644
--- a/spec/system/page_objects/modals/base.rb
+++ b/spec/system/page_objects/modals/base.rb
@@ -25,7 +25,7 @@ module PageObjects
end
def click_outside
- find(".d-modal__wrapper").click(x: 0, y: 0)
+ find(".d-modal").click(x: 0, y: 0)
end
def click_primary_button