rename message-panel to introduction-panel

pull/43/head
Alexander Bentkamp 2 years ago
parent f2a31d2baa
commit 9527bee77e

@ -105,7 +105,7 @@ function Level() {
const codeviewRef = useRef<HTMLDivElement>(null) const codeviewRef = useRef<HTMLDivElement>(null)
const infoviewRef = useRef<HTMLDivElement>(null) const infoviewRef = useRef<HTMLDivElement>(null)
const messagePanelRef = useRef<HTMLDivElement>(null) const introductionPanelRef = useRef<HTMLDivElement>(null)
const [showSidePanel, setShowSidePanel] = useState(true) const [showSidePanel, setShowSidePanel] = useState(true)
@ -117,7 +117,7 @@ function Level() {
useEffect(() => { useEffect(() => {
// Scroll to top when loading a new level // Scroll to top when loading a new level
messagePanelRef.current!.scrollTo(0,0) introductionPanelRef.current!.scrollTo(0,0)
}, [levelId]) }, [levelId])
const connection = React.useContext(ConnectionContext) const connection = React.useContext(ConnectionContext)
@ -165,7 +165,7 @@ function Level() {
</Drawer> </Drawer>
<Grid container columnSpacing={{ xs: 1, sm: 2, md: 3 }} sx={{ flexGrow: 1, p: 3 }} className="main-grid"> <Grid container columnSpacing={{ xs: 1, sm: 2, md: 3 }} sx={{ flexGrow: 1, p: 3 }} className="main-grid">
<Grid xs={8} className="main-panel"> <Grid xs={8} className="main-panel">
<div ref={messagePanelRef} className="message-panel"> <div ref={introductionPanelRef} className="introduction-panel">
<Markdown>{level?.data?.introduction}</Markdown> <Markdown>{level?.data?.introduction}</Markdown>
</div> </div>
<div className="exercise"> <div className="exercise">

@ -15,7 +15,7 @@
flex-flow: column; flex-flow: column;
} }
.message-panel { .introduction-panel {
width: 100%; width: 100%;
} }
@ -56,12 +56,12 @@ mjx-container[jax="CHTML"][display="true"] {
/* Styling tables for Markdown */ /* Styling tables for Markdown */
.message-panel table, .message-panel th, .message-panel td { .introduction-panel table, .introduction-panel th, .introduction-panel td {
/* border: 1px solid rgb(0, 0, 0, 0.12); */ /* border: 1px solid rgb(0, 0, 0, 0.12); */
border-collapse: collapse; border-collapse: collapse;
} }
.message-panel th, .message-panel td { .introduction-panel th, .introduction-panel td {
padding-left: .5em; padding-left: .5em;
padding-right: .5em; padding-right: .5em;
} }
@ -97,7 +97,7 @@ td code {
border: 1px solid rgb(230, 122, 0); border: 1px solid rgb(230, 122, 0);
} }
.message-panel { .introduction-panel {
border: 1px solid rgb(192, 18, 178); border: 1px solid rgb(192, 18, 178);
} }

Loading…
Cancel
Save