Make sure "restrict by tag" dropdown doesn't go off-screen

This commit is contained in:
Toby Zerner 2015-08-31 16:13:27 +09:30
parent 67f56d44f4
commit 74f47c58c7
3 changed files with 6 additions and 1 deletions

View File

@ -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',

View File

@ -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';

View File

@ -4,3 +4,8 @@
@import "TagsPage.less";
@import "EditTagModal.less";
@import "TagSettingsModal.less";
.Dropdown--restrictByTag .Dropdown-menu {
max-height: 400px;
overflow: auto;
}