mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
Make sure "restrict by tag" dropdown doesn't go off-screen
This commit is contained in:
parent
67f56d44f4
commit
74f47c58c7
@ -45,6 +45,7 @@ export default function() {
|
||||
|
||||
if (tags.length) {
|
||||
items.add('tag', Dropdown.component({
|
||||
className: 'Dropdown--restrictByTag',
|
||||
buttonClassName: 'Button Button--text',
|
||||
label: 'Restrict by Tag',
|
||||
icon: 'plus',
|
||||
|
@ -1,6 +1,5 @@
|
||||
import Modal from 'flarum/components/Modal';
|
||||
import Button from 'flarum/components/Button';
|
||||
import Switch from 'flarum/components/Switch';
|
||||
import { slug } from 'flarum/utils/string';
|
||||
|
||||
import tagLabel from 'tags/helpers/tagLabel';
|
||||
|
@ -4,3 +4,8 @@
|
||||
@import "TagsPage.less";
|
||||
@import "EditTagModal.less";
|
||||
@import "TagSettingsModal.less";
|
||||
|
||||
.Dropdown--restrictByTag .Dropdown-menu {
|
||||
max-height: 400px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user