diff --git a/client/src/components/Level.tsx b/client/src/components/Level.tsx index ac5c430..9a3f6cf 100644 --- a/client/src/components/Level.tsx +++ b/client/src/components/Level.tsx @@ -226,44 +226,54 @@ function PlayableLevel({worldId, levelId}) { return <>
+
- - {level?.data?.introduction && -
- {level?.data?.introduction} -
- } - {/* {openHints.map(hint => )} - {hiddenHints.length > 0 && - setShowHints((prev) => !prev)} />} - label="I need help!" - />} - {showHints && hiddenHints.map(hint => )} */} - {hints.map(hint => -
{hint.text}
) - } - {completed && - <> +
+ {level?.data?.introduction &&
- Level completed! 🎉 + {level?.data?.introduction}
- {level?.data?.conclusion?.trim() && + } + {/* {openHints.map(hint => )} + {hiddenHints.length > 0 && + setShowHints((prev) => !prev)} />} + label="I need help!" + />} + {showHints && hiddenHints.map(hint => )} */} + {hints.map(hint => +
{hint.text}
) + } + {completed && + <>
- {level?.data?.conclusion} + Level completed! 🎉
- } - {/* { hints.map(hint =>
{hint.text}
) } */} - - {levelId >= gameInfo.data?.worldSize[worldId] ? - : - } - - } - + {level?.data?.conclusion?.trim() && +
+ {level?.data?.conclusion} +
+ } + {levelId >= gameInfo.data?.worldSize[worldId] ? + : + } + + } + + {/* { hints.map(hint =>
{hint.text}
) } */} + + {/* TODO: Remove this debugging message: */} + {showHiddenHints &&

Hidden Hints are displayed

} +
+
+ setShowHiddenHints((prev) => !prev)} />} + label="Show more help!" + /> +
@@ -294,6 +304,7 @@ function PlayableLevel({worldId, levelId}) { }
+
} diff --git a/client/src/components/level.css b/client/src/components/level.css index 4a76bc6..a95460d 100644 --- a/client/src/components/level.css +++ b/client/src/components/level.css @@ -171,3 +171,14 @@ td code { border: 1px solid rgb(255, 0, 0); margin: 1px; } */ + +.chat { + height: calc(100% - 3.5em); + overflow-y: scroll; +} + +.toggle-hidden-hints { + width:100%; + height: 3.5em; + border-top: 0.1em solid #aaa; +}