Add seed file for reddit, restrict max height of variable value editor (#10)

* Add reddit seeds

* Restrict scenario variable value editor maxH to 60

* Add seed file for reddit experiments

* Further decrease max height

* Make score a string
This commit is contained in:
arcticfly
2023-07-05 18:51:34 -07:00
committed by GitHub
parent 63f6b646dc
commit e1f05a7b59
2 changed files with 1595 additions and 1 deletions

View File

@@ -130,7 +130,14 @@ export default function ScenarioEditor({
alignItems={layoutDirection === "column" ? "flex-start" : "center"}
flexWrap="wrap"
>
<Box bgColor="blue.100" color="blue.600" px={2} my="3px" fontSize="xs" fontWeight="bold">
<Box
bgColor="blue.100"
color="blue.600"
px={2}
my="3px"
fontSize="xs"
fontWeight="bold"
>
{key}
</Box>
<AutoResizeTextArea
@@ -142,6 +149,8 @@ export default function ScenarioEditor({
onChange={(e) => {
setValues((prev) => ({ ...prev, [key]: e.target.value }));
}}
maxH="32"
overflowY="auto"
onKeyDown={(e) => {
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
e.preventDefault();