(frontend) make summary button fixed to remain visible during scroll

ensures persistent access to table of contents by fixing button position

Signed-off-by: Cyril <c.gromoff@gmail.com>
This commit is contained in:
Cyril
2025-11-12 13:19:30 +01:00
parent dc12a99d4a
commit d96abb1ccf
3 changed files with 4 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ export const DocEditor = ({ doc }: DocEditorProps) => {
<>
{isDesktop && (
<Box
$height="100vh"
$position="absolute"
$css={css`
top: 72px;

View File

@@ -108,9 +108,10 @@ export const TableContent = () => {
$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']};