From b302b1f2e3af6981e3312940989f2b85425764b6 Mon Sep 17 00:00:00 2001 From: Darkle Date: Wed, 17 May 2023 13:58:26 +0200 Subject: [PATCH] Change Blog post title from h3 to h1 (#155) * Change title from h3 to h1 * Raise requirement to ^1.7.0 --- composer.json | 2 +- js/src/forum/pages/BlogComposer.js | 4 ++-- js/src/forum/pages/BlogItem.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index b837ce8..7253813 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ } }, "require": { - "flarum/core": "^1.5.0", + "flarum/core": "^1.7.0", "flarum/tags": "^1.0.0", "flarum/lock": "^1.0.0", "ext-json": "*" diff --git a/js/src/forum/pages/BlogComposer.js b/js/src/forum/pages/BlogComposer.js index c4b9973..ad503f1 100644 --- a/js/src/forum/pages/BlogComposer.js +++ b/js/src/forum/pages/BlogComposer.js @@ -195,7 +195,7 @@ export default class BlogComposer extends Page {
{/* Article name */} -

this.openNameArticleModal()} className="FlarumBlog-Article-Title" style={{ cursor: 'pointer' }}> +

this.openNameArticleModal()} className="FlarumBlog-Article-Title" style={{ cursor: 'pointer' }}> {this.article && this.article.title() && this.article.title() !== '' ? this.article.title() : app.translator.trans('v17development-flarum-blog.forum.composer.no_title')} @@ -203,7 +203,7 @@ export default class BlogComposer extends Page { -

+
{this?.article?.title?.() || 'Ghost title'} {this.article?.isHidden?.() && `(${app.translator.trans('v17development-flarum-blog.forum.hidden')})`} - , + , 100 );