feat: 新增评论框提示文案自定义功能并优化侧边栏排序
- 新增评论框提示文案(placeholder)自定义功能,支持在后台设置 - 更新文档:重命名“点赞开关”为“功能开关”,调整侧边栏排序 - 优化前端组件,统一处理评论表单和回复编辑器的提示文案 - 修复CSS样式,确保操作按钮始终可见
This commit is contained in:
@@ -149,6 +149,7 @@
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--cwd-text, #24292f);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.cwd-form-field input,
|
||||
@@ -165,6 +166,11 @@
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.cwd-form-field input::placeholder,
|
||||
.cwd-form-field textarea::placeholder {
|
||||
color: var(--cwd-text-secondary);
|
||||
}
|
||||
|
||||
.cwd-form-field input:focus,
|
||||
.cwd-form-field textarea:focus {
|
||||
outline: none;
|
||||
@@ -318,9 +324,9 @@
|
||||
}
|
||||
|
||||
/* 鼠标悬停在评论主体上时显示操作按钮 */
|
||||
.cwd-comment-body:hover .cwd-action-btn {
|
||||
/* .cwd-comment-body:hover>.cwd-comment-header>.cwd-comment-actions>.cwd-action-btn {
|
||||
display: inline-flex !important;
|
||||
}
|
||||
} */
|
||||
|
||||
.cwd-comment-item:last-child {
|
||||
border-bottom: none;
|
||||
@@ -681,7 +687,7 @@
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
font-family: inherit;
|
||||
display: none;
|
||||
/* display: none; */
|
||||
}
|
||||
|
||||
.cwd-action-btn:hover {
|
||||
@@ -1023,4 +1029,4 @@
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
max-width: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user