fix: height of reveal rendering

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-05-24 21:02:27 +02:00
parent 5ea313fcb0
commit d57e6261da
2 changed files with 16 additions and 3 deletions

View file

@ -10,6 +10,7 @@ import { MarkdownToReact } from '../../../markdown-renderer/markdown-to-react/ma
import { RendererType } from '../../window-post-message-communicator/rendering-message'
import type { CommonMarkdownRendererProps } from '../common-markdown-renderer-props'
import { LoadingSlide } from './loading-slide'
import styles from './slideshow.module.scss'
import type { SlideOptions } from '@hedgedoc/commons'
import React, { useMemo, useRef } from 'react'
@ -57,9 +58,11 @@ export const SlideshowMarkdownRenderer: React.FC<SlideshowMarkdownRendererProps>
)
return (
<div className={'reveal'}>
<div ref={markdownBodyRef} className={`slides`}>
{slideShowDOM}
<div className={styles.wrapper}>
<div className={'reveal'}>
<div ref={markdownBodyRef} className={`slides`}>
{slideShowDOM}
</div>
</div>
</div>
)

View file

@ -0,0 +1,10 @@
/*!
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
.wrapper {
height: 100vh;
min-height: 100vh;
}