This commit is contained in:
2026-01-31 01:52:21 +01:00
parent 30e8e9b3a4
commit bff7c77095
2 changed files with 16 additions and 5 deletions

View File

@@ -697,6 +697,7 @@
btn.setAttribute('aria-label', title);
btn.className = 'bridge-rte-btn';
btn.setAttribute('data-bridge-rte', 'button');
btn.classList.add('bridge-rte-btn--tool');
btn.style.padding = '8px 12px';
btn.style.border = '1px solid #cbd5f5';
btn.style.borderRadius = '4px';
@@ -1159,6 +1160,11 @@
);
const fontSelect = addSelect([{ label: 'Schriftart', value: '' }, ...fontOptions], 'Schriftart', (value) => {
if (!value) return;
const range = getSelectionRange();
if (range && !range.collapsed) {
applyInlineStyle('fontFamily', value);
return;
}
pendingComponentStyle.fontFamily = value;
applyComponentStyle({ fontFamily: value }, { preview: true });
}, toolbarSecondary);
@@ -1222,15 +1228,20 @@
border-top: 1px dashed #e2e8f0;
}
.bridge-rte-btn {
font-size: 16px;
font-size: 14px;
line-height: 1;
min-height: 40px;
min-width: 40px;
min-height: 30px;
min-width: 30px;
font-weight: 600;
color: #0f172a;
background: #f8fafc;
}
.bridge-rte-btn svg { width: 18px; height: 18px; }
.bridge-rte-btn--tool {
font-size: 16px;
min-height: 40px;
min-width: 40px;
}
.bridge-rte-btn--tool svg { width: 18px; height: 18px; }
.bridge-rte-select {
font-size: 15px;
min-height: 40px;