From d96abb1ccf9142689c135e3fed1c1c08f9c2a347 Mon Sep 17 00:00:00 2001 From: Cyril Date: Wed, 12 Nov 2025 13:19:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(frontend)=20make=20summary=20button?= =?UTF-8?q?=20fixed=20to=20remain=20visible=20during=20scroll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ensures persistent access to table of contents by fixing button position Signed-off-by: Cyril --- CHANGELOG.md | 1 + .../src/features/docs/doc-editor/components/DocEditor.tsx | 1 + .../docs/doc-table-content/components/TableContent.tsx | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80cf3cca1..e42e2206a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to - ♿(frontend) add focus trap and enter key support to remove doc modal #1531 - 🐛(docx) fix image overflow by limiting width to 600px during export #1525 - 🐛(frontend) preserve @ character when esc is pressed after typing it #1512 +- 🐛(frontend) make summary button fixed to remain visible during scroll #1581 - 🐛(frontend) fix pdf embed to use full width #1526 - 🐛(pdf) fix table cell alignment issue in exported documents #1582 diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/DocEditor.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/DocEditor.tsx index a2d04ba29..f7310d6ca 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/DocEditor.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/DocEditor.tsx @@ -99,6 +99,7 @@ export const DocEditor = ({ doc }: DocEditorProps) => { <> {isDesktop && ( { $align="center" $padding={isHover ? 'xs' : '0'} $justify="center" - $position="relative" + $position="sticky" aria-label={t('Summary')} $css={css` + top: 0; border: 1px solid ${colorsTokens['greyscale-300']}; overflow: hidden; border-radius: ${spacingsTokens['3xs']};