mirror of
https://github.com/discourse/discourse.git
synced 2025-06-22 11:41:59 +08:00
UX: modal > remove obsolete wrapper class (#24381)
This commit is contained in:
@ -17,7 +17,7 @@
|
|||||||
{{will-destroy this.cleanupListeners}}
|
{{will-destroy this.cleanupListeners}}
|
||||||
{{trap-tab preventScroll=false}}
|
{{trap-tab preventScroll=false}}
|
||||||
>
|
>
|
||||||
<div class="d-modal__wrapper">
|
|
||||||
<div class="d-modal__container">
|
<div class="d-modal__container">
|
||||||
{{yield to="aboveHeader"}}
|
{{yield to="aboveHeader"}}
|
||||||
|
|
||||||
@ -95,7 +95,6 @@
|
|||||||
|
|
||||||
{{yield to="belowFooter"}}
|
{{yield to="belowFooter"}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</this.dynamicElement>
|
</this.dynamicElement>
|
||||||
{{#unless @inline}}
|
{{#unless @inline}}
|
||||||
<div class="d-modal__backdrop" {{on "click" this.handleWrapperClick}}></div>
|
<div class="d-modal__backdrop" {{on "click" this.handleWrapperClick}}></div>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
.d-modal {
|
.d-modal {
|
||||||
pointer-events: none; // Allow clicks through wrappers so they hit the adjacent backdrop element
|
pointer-events: none; // Allow clicks through wrappers so they hit the adjacent backdrop element
|
||||||
|
|
||||||
&__wrapper {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -13,14 +12,13 @@
|
|||||||
z-index: z("modal", "content");
|
z-index: z("modal", "content");
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.-inline & {
|
&.-inline {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.keyboard-visible body.ios-safari-composer-hacks & {
|
html.keyboard-visible body.ios-safari-composer-hacks & {
|
||||||
height: calc(var(--composer-vh, 1vh) * 100);
|
height: calc(var(--composer-vh, 1vh) * 100);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__container {
|
&__container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -266,9 +266,7 @@
|
|||||||
|
|
||||||
.d-modal.chat-modal-new-message {
|
.d-modal.chat-modal-new-message {
|
||||||
.d-modal {
|
.d-modal {
|
||||||
&__wrapper {
|
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
|
||||||
&__container {
|
&__container {
|
||||||
width: var(--modal-max-width);
|
width: var(--modal-max-width);
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.modal-inner-container {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//legacy
|
//legacy
|
||||||
|
@ -25,7 +25,7 @@ module PageObjects
|
|||||||
end
|
end
|
||||||
|
|
||||||
def click_outside
|
def click_outside
|
||||||
find(".d-modal__wrapper").click(x: 0, y: 0)
|
find(".d-modal").click(x: 0, y: 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
def click_primary_button
|
def click_primary_button
|
||||||
|
Reference in New Issue
Block a user