mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 09:42:00 +08:00
UX: Improve max-height
value on toolbar popup menu (#18030)
* UX: Improve `max-height` value on toolbar popup menu * UX: Popup menu based on new editor height property * DEV: Update heights on resize * DEV: Remove `--d-editor-height` property * UX: Calculate max height based on composer type * DEV: Remove event listener `willDestroyElement()` hook * FIX: Remove unnecessary check and calculation * DEV: Remove explicitly calling `updateHeightOnViewportResize()` * UX: Update max-height * UX: Different max-height values for reply/create * DEV: Add comments for clarity * DEV: Remove `updateHeightOnViewportResize()` event listener
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
&.dropdown-select-box {
|
&.dropdown-select-box {
|
||||||
&.toolbar-popup-menu-options {
|
&.toolbar-popup-menu-options {
|
||||||
.select-kit-collection {
|
.select-kit-collection {
|
||||||
max-height: 50vh;
|
max-height: 35vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-kit-body {
|
.select-kit-body {
|
||||||
|
@ -2,3 +2,4 @@
|
|||||||
@import "dropdown-select-box";
|
@import "dropdown-select-box";
|
||||||
@import "select-kit";
|
@import "select-kit";
|
||||||
@import "tag-drop";
|
@import "tag-drop";
|
||||||
|
@import "toolbar-popup-menu-options";
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
// ensure popupmenu options has scroll behavior on limited screen space
|
||||||
|
#reply-control {
|
||||||
|
&.composer-action-createTopic {
|
||||||
|
.toolbar-popup-menu-options .select-kit-collection {
|
||||||
|
// fits popup menu inside textarea in create topic composer
|
||||||
|
max-height: 155px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.composer-action-reply {
|
||||||
|
.toolbar-popup-menu-options .select-kit-collection {
|
||||||
|
// fits popup menu to textarea in reply composer
|
||||||
|
max-height: 230px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user