feat(static): dnfs 内容输入框随内容自动调整高度
- textarea 输入时自动增长,最小 120px,最大 400px - 超过最大高度后出现滚动条,避免页面无限撑开 - 编辑已有节点时自动适配内容高度 - 提交/重置/退出编辑后恢复初始高度 - 禁用手动拖拽 resize,由自动增长统一控制
This commit is contained in:
1 parent
5839172dae
commit
ea670adde2
2 files changed
+21
No files matched your search
@@ -491,7 +491,10 @@ input[type="button"]:disabled {
|
||||
padding: 0.9rem 1rem;
|
||||
font-size: 0.95rem;
|
||||
min-height: 120px;
|
||||
max-height: 400px;
|
||||
line-height: 1.7;
|
||||
overflow-y: hidden;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
/* ===== Markdown Content ===== */
|
||||
|
||||
Reference in new issue
Block a user