style(css): 调整工具栏和按钮的尺寸及间距

统一缩小工具栏和按钮的尺寸,优化整体视觉间距
This commit is contained in:
Zhukj
2026-04-25 09:46:49 +08:00
parent b380e65161
commit 79203d418b

View File

@@ -24,7 +24,7 @@ html, body {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 6px; gap: 4px;
padding: 10px 12px; padding: 10px 12px;
background: #fff; background: #fff;
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0;
@@ -32,10 +32,10 @@ html, body {
} }
.btn { .btn {
min-width: 68px; min-width: 56px;
height: 36px; height: 32px;
padding: 0 10px; padding: 0 8px;
font-size: 14px; font-size: 13px;
border: 1px solid #ddd; border: 1px solid #ddd;
border-radius: 6px; border-radius: 6px;
background: #fff; background: #fff;
@@ -53,7 +53,7 @@ html, body {
} }
.btn-primary { .btn-primary {
min-width: 100px; min-width: 80px;
background: #4a90e2; background: #4a90e2;
color: #fff; color: #fff;
border-color: #4a90e2; border-color: #4a90e2;
@@ -66,18 +66,18 @@ html, body {
/* 工具栏垂直分隔线 */ /* 工具栏垂直分隔线 */
.toolbar-divider-v { .toolbar-divider-v {
width: 1px; width: 1px;
height: 20px; height: 18px;
background: #e0e0e0; background: #e0e0e0;
margin: 0 2px; margin: 0 1px;
} }
/* 工具栏图标按钮 */ /* 工具栏图标按钮 */
.toolbar-btn-icon { .toolbar-btn-icon {
width: 28px; width: 24px;
height: 28px; height: 24px;
font-size: 14px; font-size: 12px;
border: 1px solid #ddd; border: 1px solid #ddd;
border-radius: 5px; border-radius: 4px;
background: #fff; background: #fff;
color: #555; color: #555;
cursor: pointer; cursor: pointer;
@@ -106,13 +106,13 @@ html, body {
/* 撤销重做按钮组 */ /* 撤销重做按钮组 */
.toolbar-action-group { .toolbar-action-group {
display: flex; display: flex;
gap: 3px; gap: 2px;
margin: 0 2px; margin: 0 1px;
} }
/* 左侧分隔线(文本按钮后) */ /* 左侧分隔线(文本按钮后) */
.toolbar-divider-v.divider-left { .toolbar-divider-v.divider-left {
margin-left: 4px; margin-left: 2px;
margin-right: 0; margin-right: 0;
} }
@@ -163,7 +163,7 @@ html, body {
/* 编辑器工具栏(文本/图片共用) */ /* 编辑器工具栏(文本/图片共用) */
.editor-toolbar { .editor-toolbar {
position: absolute; position: absolute;
top: 65px; top: 52px;
left: 0; left: 0;
right: 0; right: 0;
display: flex; display: flex;