From cb4f69093771c09e78ca17c6f3e680a82e3a0a96 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 29 Aug 2017 15:15:17 +0200 Subject: [PATCH] uses new select-box for quick topic edit --- app/assets/javascripts/discourse/templates/topic.hbs | 2 +- app/assets/stylesheets/desktop/topic.scss | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/topic.hbs b/app/assets/javascripts/discourse/templates/topic.hbs index bbf86d6bf1b..6acb195d121 100644 --- a/app/assets/javascripts/discourse/templates/topic.hbs +++ b/app/assets/javascripts/discourse/templates/topic.hbs @@ -19,7 +19,7 @@ {{text-field id="edit-title" value=buffered.title maxlength=siteSettings.max_topic_title_length autofocus="true"}} {{#if showCategoryChooser}}
- {{category-chooser valueAttribute="id" value=buffered.category_id}} + {{category-select-box width=350 value=buffered.category_id}} {{/if}} {{#if canEditTags}} diff --git a/app/assets/stylesheets/desktop/topic.scss b/app/assets/stylesheets/desktop/topic.scss index 4adbbcd4d0d..2b30adb33aa 100644 --- a/app/assets/stylesheets/desktop/topic.scss +++ b/app/assets/stylesheets/desktop/topic.scss @@ -26,16 +26,6 @@ margin-right: 6px; } #edit-title { width: 500px; } - .category-combobox { - width: 350px; - .select2-drop { - left: -9000px; - width: 248px; - } - .select2-search input { - width: 198px; - } - } h1 { font-size: 1.8em; line-height: 1.2em;