Improve gfx on split screen

This commit is contained in:
Enrico Ros
2024-02-22 08:40:23 -08:00
parent 64b18c0a0a
commit 74dbe11d4a
8 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ export const overlayButtonsSx: SxProps = {
interface RenderCodeBaseProps {
codeBlock: CodeBlock,
isMobile?: boolean,
fitScreen?: boolean,
noCopyButton?: boolean,
optimizeLightweight?: boolean,
sx?: SxProps,
@@ -78,7 +78,7 @@ interface RenderCodeImplProps extends RenderCodeBaseProps {
function RenderCodeImpl(props: RenderCodeImplProps) {
// state
const [fitScreen, setFitScreen] = React.useState(!!props.isMobile);
const [fitScreen, setFitScreen] = React.useState(!!props.fitScreen);
const [showHTML, setShowHTML] = React.useState(false);
const [showMermaid, setShowMermaid] = React.useState(true);
const [showPlantUML, setShowPlantUML] = React.useState(true);