mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 16:44:49 -04: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 { RendererType } from '../../window-post-message-communicator/rendering-message'
|
||||||
import type { CommonMarkdownRendererProps } from '../common-markdown-renderer-props'
|
import type { CommonMarkdownRendererProps } from '../common-markdown-renderer-props'
|
||||||
import { LoadingSlide } from './loading-slide'
|
import { LoadingSlide } from './loading-slide'
|
||||||
|
import styles from './slideshow.module.scss'
|
||||||
import type { SlideOptions } from '@hedgedoc/commons'
|
import type { SlideOptions } from '@hedgedoc/commons'
|
||||||
import React, { useMemo, useRef } from 'react'
|
import React, { useMemo, useRef } from 'react'
|
||||||
|
|
||||||
|
@ -57,9 +58,11 @@ export const SlideshowMarkdownRenderer: React.FC<SlideshowMarkdownRendererProps>
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'reveal'}>
|
<div className={styles.wrapper}>
|
||||||
<div ref={markdownBodyRef} className={`slides`}>
|
<div className={'reveal'}>
|
||||||
{slideShowDOM}
|
<div ref={markdownBodyRef} className={`slides`}>
|
||||||
|
{slideShowDOM}
|
||||||
|
</div>
|
||||||
</div>
|
</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…
Add table
Add a link
Reference in a new issue