From bff7c770952320140539ffbb44ea1a0808065f82 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 31 Jan 2026 01:52:21 +0100 Subject: [PATCH] asdasd --- config/current.ver | 2 +- public/assets/js/bridge/rte-editor.js | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/config/current.ver b/config/current.ver index 2c1b922..a236ff4 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.1.72 \ No newline at end of file +1.1.73 \ No newline at end of file diff --git a/public/assets/js/bridge/rte-editor.js b/public/assets/js/bridge/rte-editor.js index 8c958de..ed58ee0 100644 --- a/public/assets/js/bridge/rte-editor.js +++ b/public/assets/js/bridge/rte-editor.js @@ -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;