nodebb-plugin-composer-default 11.0.1 → 11.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/static/lib/composer.js
CHANGED
|
@@ -686,15 +686,15 @@ define('composer', [
|
|
|
686
686
|
|
|
687
687
|
if (uploads.inProgress[post_uuid] && uploads.inProgress[post_uuid].length) {
|
|
688
688
|
return composerAlert(post_uuid, '[[error:still-uploading]]');
|
|
689
|
-
} else if (checkTitle && payload.titleLen < parseInt(config.minimumTitleLength, 10)) {
|
|
689
|
+
} else if (!app.user.isAdmin && checkTitle && payload.titleLen < parseInt(config.minimumTitleLength, 10)) {
|
|
690
690
|
return composerAlert(post_uuid, '[[error:title-too-short, ' + config.minimumTitleLength + ']]');
|
|
691
|
-
} else if (checkTitle && payload.titleLen > parseInt(config.maximumTitleLength, 10)) {
|
|
691
|
+
} else if (!app.user.isAdmin && checkTitle && payload.titleLen > parseInt(config.maximumTitleLength, 10)) {
|
|
692
692
|
return composerAlert(post_uuid, '[[error:title-too-long, ' + config.maximumTitleLength + ']]');
|
|
693
693
|
} else if (action === 'topics.post' && !isCategorySelected) {
|
|
694
694
|
return composerAlert(post_uuid, '[[error:category-not-selected]]');
|
|
695
|
-
} else if (payload.bodyLen < parseInt(config.minimumPostLength, 10)) {
|
|
695
|
+
} else if (!app.user.isAdmin && payload.bodyLen < parseInt(config.minimumPostLength, 10)) {
|
|
696
696
|
return composerAlert(post_uuid, '[[error:content-too-short, ' + config.minimumPostLength + ']]');
|
|
697
|
-
} else if (payload.bodyLen > parseInt(config.maximumPostLength, 10)) {
|
|
697
|
+
} else if (!app.user.isAdmin && payload.bodyLen > parseInt(config.maximumPostLength, 10)) {
|
|
698
698
|
return composerAlert(post_uuid, '[[error:content-too-long, ' + config.maximumPostLength + ']]');
|
|
699
699
|
} else if (checkTitle && !tags.isEnoughTags(post_uuid)) {
|
|
700
700
|
return composerAlert(post_uuid, '[[error:not-enough-tags, ' + tags.minTagCount() + ']]');
|
|
@@ -369,12 +369,9 @@
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
.formatting-group {
|
|
376
|
-
overflow: visible!important;
|
|
377
|
-
}
|
|
372
|
+
// without this formatting elements that are dropdowns are not visible
|
|
373
|
+
.formatting-group:has([aria-expanded="true"]) {
|
|
374
|
+
overflow:visible!important;
|
|
378
375
|
}
|
|
379
376
|
|
|
380
377
|
@import './zen-mode';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="d-flex justify-content-between gap-2 align-items-center formatting-bar m-0">
|
|
2
|
-
<ul class="list-unstyled mb-0 d-flex formatting-group gap-2 overflow-auto">
|
|
2
|
+
<ul class="list-unstyled mb-0 d-flex formatting-group gap-2 overflow-auto ghost-scrollbar" style="min-width: 0;">
|
|
3
3
|
{{{ each formatting }}}
|
|
4
4
|
{{{ if ./spacer }}}
|
|
5
5
|
<li class="small spacer"></li>
|