mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
fix: height of reveal rendering
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
5ea313fcb0
commit
d57e6261da
2 changed files with 16 additions and 3 deletions
|
@ -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>
|
||||
)
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue