From 5a8f6967ce8e21ade5f2db8559fed6039963e32a Mon Sep 17 00:00:00 2001 From: Nathan Panchout Date: Tue, 30 Jun 2026 16:01:12 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(frontend)=20restyle=20the=20editor?= =?UTF-8?q?=20divider=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Slim the divider to a 1px rule with a brand-colored selected state, matching the mockups. Closes #2474 --- .../src/features/docs/doc-editor/styles.tsx | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx index fff7b6a24..858759854 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx @@ -152,14 +152,32 @@ export const DocsEditorStyle = createGlobalStyle` /** * Divider */ - [data-content-type='divider'] hr { - background: #d3d2cf; - margin: 1rem 0; + .bn-block-content[data-content-type='divider'] { + display: flex; + align-items: center; + justify-content: center; + height: 28px; + padding: 0; + } + .bn-block-content[data-content-type='divider'] hr { + flex: 1 1 100%; width: 100%; - border: 1px solid #d3d2cf; + height: 1px; + margin: 0; + border: 0; + border-radius: 11px; + background: var(--c--contextuals--border--surface--primary); + } + .bn-block-content[data-content-type='divider'].ProseMirror-selectednode hr { + height: 9.5px; + outline: 0 !important; + box-shadow: none; + border: 4px solid + var(--c--contextuals--border--semantic--brand--tertiary); + background: var(--c--contextuals--border--semantic--brand--secondary); } .bn-side-menu[data-block-type='divider'] { - height: 38px; + height: 28px; } /**