mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 10:14:52 -06:00
UX: DMenu modal add grip and min-height (#29309)
* UX: add min-height to DMenu modal * UX: add grip handle
This commit is contained in:
parent
9e74095488
commit
f9d86686ae
@ -91,6 +91,7 @@ export default class DMenu extends Component {
|
||||
data-identifier={{@instance.options.identifier}}
|
||||
data-content
|
||||
>
|
||||
<div class="fk-d-menu-modal__grip" aria-hidden="true"></div>
|
||||
{{#if (has-block)}}
|
||||
{{yield this.componentArgs}}
|
||||
{{else if (has-block "content")}}
|
||||
|
@ -1,6 +1,17 @@
|
||||
.fk-d-menu-modal {
|
||||
&__grip {
|
||||
position: absolute;
|
||||
top: 2.5px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background: var(--primary-medium);
|
||||
height: 5px;
|
||||
width: 15vw;
|
||||
max-width: 100px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.d-modal__body {
|
||||
padding: 0.5em 0;
|
||||
padding: 1em 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
|
@ -61,12 +61,6 @@
|
||||
}
|
||||
|
||||
.fk-d-menu-modal.list-control-toggle-link-content {
|
||||
.d-modal {
|
||||
&__body {
|
||||
padding-block: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -33,6 +33,7 @@ html:not(.keyboard-visible.mobile-view) {
|
||||
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-height: 45svh;
|
||||
max-height: calc(var(--composer-vh, var(--1dvh)) * 85);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user