fix(ban): appeal textarea squash and nested tone on the user center entry

- fix(ban): 申诉弹窗「请填写申诉说明」填写框被压成 0px——bindAppealForm
  对全部 textarea 执行 bindAutoHeight,而 grow 对无 maxHeight 属性的元素
  走 else 分支写入 height:0;参考主题申诉说明框为 rows=3 自然高度。
  现 autoHeight 仅对显式声明 autoHeight/maxHeight 的文本框生效
- fix(ban): 申诉弹窗与禁封记录弹窗滚动容器对齐参考主题 max-vh5(50vh,
  内层滚动、外层对话框不滚动);mini-scrollbar 提供细滚动条(悬停才显示,
  无常驻侧边滚动栏);禁封弹窗保持 max-vh7 不变
- fix(ban): 用户中心封禁元信息按钮两层颜色嵌套——外层 but 与内层 badg
  同时带 c-red/c-yellow;现外层 but 为默认按钮色,颜色仅由内层 badg
  承载(1:1 参考主题 zib_get_user_ban_info_link 结构)
- test: 契约测试锁定三处修复(说明框自然高度、max-vh5、外层 but 不重复着色)
This commit is contained in:
kate522 committed 2026-09-22 19:46:35 +08:00
1 parent a4af024f32
commit 7a3f5d7c34
3 files changed
+32 -6

No files matched your search

+7 -1
View File
@@ -113,7 +113,13 @@
var form = shell.querySelector('[data-aksrt-appeal-form]');
if (!form || form.dataset.aksrtAppealBound === '1') return;
form.dataset.aksrtAppealBound = '1';
Array.prototype.forEach.call(form.querySelectorAll('textarea.form-control'), bindAutoHeight);
// autoHeight 仅对显式声明 autoHeight/maxHeight 的文本框生效:
// 申诉说明框(1:1 参考主题)为 rows=3 自然高度 + 容器滚动,
// 无 maxHeight 时执行 grow 会被压成 0px。
Array.prototype.forEach.call(
form.querySelectorAll('textarea[autoHeight], textarea[maxHeight]'),
bindAutoHeight
);
form.addEventListener('submit', function (event) {
event.preventDefault();
submitAppeal(form);