From 0a0c50e1bb8b9e9effd7ebf7c59d5f2013633a72 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 1 Jun 2015 10:29:11 +0930 Subject: [PATCH] Add icon to post edit composer --- framework/core/js/forum/src/components/edit-composer.js | 3 ++- framework/core/less/forum/composer.less | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/edit-composer.js b/framework/core/js/forum/src/components/edit-composer.js index bd1bb495c..cb67e7346 100644 --- a/framework/core/js/forum/src/components/edit-composer.js +++ b/framework/core/js/forum/src/components/edit-composer.js @@ -2,6 +2,7 @@ import ItemList from 'flarum/utils/item-list'; import ComposerBody from 'flarum/components/composer-body'; import Alert from 'flarum/components/alert'; import ActionButton from 'flarum/components/action-button'; +import icon from 'flarum/helpers/icon'; /** The composer body for editing a post. Sets the initial content to the @@ -23,7 +24,7 @@ export default class EditComposer extends ComposerBody { var post = this.props.post; items.add('title', m('h3', [ - 'Editing ', + icon('pencil'), ' ', m('a', {href: app.route.discussion(post.discussion(), post.number()), config: m.route}, 'Post #'+post.number()), ' in ', post.discussion().title() ])); diff --git a/framework/core/less/forum/composer.less b/framework/core/less/forum/composer.less index 30c0dc127..4df486a36 100644 --- a/framework/core/less/forum/composer.less +++ b/framework/core/less/forum/composer.less @@ -36,6 +36,9 @@ height: auto; } } + & .fa { + font-size: 14px; + } } } .composer-controls {