fix: 修复字号调整逻辑,实现每个输入框独立按自身当前字号增减

This commit is contained in:
Zhukj
2026-04-16 17:47:52 +08:00
parent bd21bc0503
commit 52cc784478
4 changed files with 91 additions and 18 deletions

View File

@@ -118,8 +118,37 @@ html, body {
cursor: pointer;
}
#fontSizePicker {
min-width: 60px;
/* 字号滚轮选择器 */
.roller-picker {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background: #fff;
border: 1px solid #ddd;
border-radius: 6px;
min-width: 65px;
height: 36px;
}
.roller-arrow {
font-size: 10px;
color: #666;
cursor: pointer;
padding: 2px 4px;
user-select: none;
transition: color 0.2s;
}
.roller-arrow:hover {
color: #4a90e2;
}
.roller-value {
font-size: 14px;
min-width: 24px;
text-align: center;
color: #333;
}
#fontPicker {