nodebb-plugin-composer-default 10.0.25 → 10.0.27
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
|
@@ -47,7 +47,7 @@ define('composer/categoryList', [
|
|
|
47
47
|
states: ['watching', 'notwatching', 'ignoring'],
|
|
48
48
|
openOnLoad: true,
|
|
49
49
|
showLinks: false,
|
|
50
|
-
|
|
50
|
+
onSubmit: function (selectedCategory) {
|
|
51
51
|
postContainer.find('.category-name').text(selectedCategory.name);
|
|
52
52
|
selector.selectCategory(selectedCategory.cid);
|
|
53
53
|
if (postData.hasOwnProperty('cid')) {
|
|
@@ -185,7 +185,7 @@ define('composer/tags', ['alerts'], function (alerts) {
|
|
|
185
185
|
input.removeAttr('readonly');
|
|
186
186
|
input.attr('placeholder', postContainer.find('input.tags').attr('placeholder'));
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
postContainer.find('.tags-container').toggleClass('haswhitelist', !!(data.tagWhitelist && data.tagWhitelist.length));
|
|
189
189
|
postContainer.find('.tags-container').toggleClass('hidden', (
|
|
190
190
|
data.privileges && data.privileges.hasOwnProperty('topics:tag') && !data.privileges['topics:tag']) ||
|
|
191
191
|
(maxTags === 0 && !postData && !postData.tags && !postData.tags.length));
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
background: transparent;
|
|
118
118
|
flex-grow: 1;
|
|
119
119
|
border: 0;
|
|
120
|
-
padding:
|
|
120
|
+
padding: 0;
|
|
121
121
|
box-shadow: none;
|
|
122
122
|
max-height: 80px;
|
|
123
123
|
overflow: auto;
|
|
@@ -129,6 +129,11 @@
|
|
|
129
129
|
color: $body-color;
|
|
130
130
|
font-size: 16px;
|
|
131
131
|
width: 50%;
|
|
132
|
+
@include media-breakpoint-down(md) {
|
|
133
|
+
width: 100%;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
132
137
|
height: 28px;
|
|
133
138
|
padding: 4px 6px;
|
|
134
139
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div component="composer" class="composer
|
|
1
|
+
<div component="composer" class="composer <!-- IF resizable --> resizable<!-- ENDIF resizable --><!-- IF !isTopicOrMain --> reply<!-- ENDIF !isTopicOrMain -->">
|
|
2
2
|
|
|
3
3
|
<div class="composer-container d-flex flex-column gap-1 h-100">
|
|
4
4
|
<!-- mobile header -->
|
|
@@ -22,23 +22,24 @@
|
|
|
22
22
|
<button class="btn btn-sm btn-primary composer-submit" data-action="post" tabindex="-1"><i class="fa fa-chevron-right"></i></button>
|
|
23
23
|
</div>
|
|
24
24
|
</nav>
|
|
25
|
+
<div class="p-2 d-flex flex-column gap-1 h-100">
|
|
26
|
+
<!-- IMPORT partials/composer-title-container.tpl -->
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
<!-- IMPORT partials/composer-formatting.tpl -->
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
<!-- IMPORT partials/composer-write-preview.tpl -->
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
<!-- IF isTopicOrMain -->
|
|
33
|
+
<!-- IMPORT partials/composer-tags.tpl -->
|
|
34
|
+
<!-- ENDIF isTopicOrMain -->
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
<!-- IMPORT partials/composer-tags.tpl -->
|
|
34
|
-
<!-- ENDIF isTopicOrMain -->
|
|
36
|
+
<div class="imagedrop"><div>[[topic:composer.drag_and_drop_images]]</div></div>
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<i class="fa fa-fw fa-up-down"></i>
|
|
38
|
+
<div class="resizer position-absolute w-100 bottom-100 pe-3 border-bottom">
|
|
39
|
+
<div class="trigger text-center">
|
|
40
|
+
<div class="handle d-inline-block px-2 py-1 border bg-body">
|
|
41
|
+
<i class="fa fa-fw fa-up-down"></i>
|
|
42
|
+
</div>
|
|
42
43
|
</div>
|
|
43
44
|
</div>
|
|
44
45
|
</div>
|