进行了一些小修复
@@ -35,6 +35,7 @@
|
||||
!/tests/widget-system/financial-flow-contract.test.cjs
|
||||
!/tests/widget-system/pay-orders-filter-contract.test.cjs
|
||||
!/tests/widget-system/front-submit-editor-contract.test.cjs
|
||||
!/tests/widget-system/comment-smilies-removal-contract.test.cjs
|
||||
!/tests/asset-ledger/
|
||||
!/tests/asset-ledger/*.php
|
||||
!/tests/visual/docker-compose.zibll.yml
|
||||
|
||||
@@ -13,7 +13,6 @@ export const commentSchema = {
|
||||
comment_avatar_size: 48,
|
||||
comment_close_comments: false,
|
||||
comment_edit_window: 10,
|
||||
comment_smilie: true,
|
||||
comment_code: true,
|
||||
comment_img: true,
|
||||
comment_like_s: true,
|
||||
@@ -65,7 +64,6 @@ export const commentSchema = {
|
||||
title: '评论工具栏',
|
||||
icon: 'fa fas fa-wrench',
|
||||
fields: [
|
||||
{ key: 'comment_smilie', label: 'Emoji 表情', type: 'switch', default: true },
|
||||
{ key: 'comment_code', label: '代码插入', type: 'switch', default: true },
|
||||
{ key: 'comment_img', label: '图片按钮', type: 'switch', default: true },
|
||||
{ key: 'comment_upload_img', label: '评论图片上传', type: 'switch', default: false },
|
||||
|
||||
@@ -2857,20 +2857,6 @@ input + .limit-warning.top::after {
|
||||
max-height: 350px;
|
||||
}
|
||||
|
||||
.dropdown-smilie {
|
||||
width: 260px;
|
||||
height: 300px;
|
||||
padding: 8px 10px;
|
||||
white-space: inherit;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dropdown-smilie .smilie-icon {
|
||||
display: inline-block;
|
||||
padding: 3px;
|
||||
width: 38px !important;
|
||||
}
|
||||
|
||||
.dropdown-quick-often {
|
||||
width: 260px;
|
||||
}
|
||||
@@ -7466,7 +7452,7 @@ badge.top,
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.new-swiper .swiper-slide img:not(.img-icon):not(.smilie-icon):not(.avatar-badge):not(.avatar) {
|
||||
.new-swiper .swiper-slide img:not(.img-icon):not(.avatar-badge):not(.avatar) {
|
||||
max-height: var(--max-height);
|
||||
min-height: var(--min-height);
|
||||
-o-object-fit: cover;
|
||||
@@ -7613,7 +7599,7 @@ badge.top,
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comment-content .box-img:not(.smilie-icon),
|
||||
.comment-content .box-img,
|
||||
.alone-imgbox-img,
|
||||
.cursor-zoom-in {
|
||||
cursor: zoom-in;
|
||||
@@ -7663,7 +7649,7 @@ badge.top,
|
||||
border-radius: var(--main-radius);
|
||||
}
|
||||
|
||||
.new-swiper.item-thumbnail.contain img:not(.img-icon):not(.smilie-icon):not(.avatar-badge):not(.avatar),
|
||||
.new-swiper.item-thumbnail.contain img:not(.img-icon):not(.avatar-badge):not(.avatar),
|
||||
.item-thumbnail.contain img {
|
||||
object-fit: contain;
|
||||
}
|
||||
@@ -9473,10 +9459,6 @@ img.alignleft {
|
||||
bottom: -2px;
|
||||
}
|
||||
|
||||
.smilie-icon {
|
||||
width: 30px !important;
|
||||
}
|
||||
|
||||
#postcomments .comment-footer {
|
||||
position: relative;
|
||||
}
|
||||
@@ -9582,7 +9564,7 @@ img.alignleft {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
#postcomments .comment-content img:not(.smilie-icon) {
|
||||
#postcomments .comment-content img {
|
||||
max-width: 260px;
|
||||
max-height: 350px;
|
||||
display: block;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 913 B |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 13 KiB |
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Comment expand tools — legacy-style shortcode inserts ([g=] [code] [img=] quick).
|
||||
* Comment expand tools — legacy-style shortcode inserts ([code] [img=] quick).
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -39,21 +39,6 @@
|
||||
}
|
||||
|
||||
document.addEventListener('click', function (e) {
|
||||
var sm = e.target && e.target.closest ? e.target.closest('[data-smilie], a.smilie-icon') : null;
|
||||
if (sm) {
|
||||
e.preventDefault();
|
||||
var key = sm.getAttribute('data-smilie');
|
||||
if (!key && sm.querySelector) {
|
||||
var img = sm.querySelector('[data-smilie]');
|
||||
if (img) key = img.getAttribute('data-smilie');
|
||||
}
|
||||
if (!key) return;
|
||||
insertAtCursor(findTextarea(sm), '[g=' + key + ']');
|
||||
var wrap = sm.closest('span.dropup');
|
||||
if (wrap) wrap.classList.remove('open');
|
||||
return;
|
||||
}
|
||||
|
||||
var codeBtn = e.target && e.target.closest ? e.target.closest('.input-code-submit') : null;
|
||||
if (codeBtn) {
|
||||
e.preventDefault();
|
||||
|
||||