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:
1585
prisma/seedRedditExperiment.ts
Normal file
1585
prisma/seedRedditExperiment.ts
Normal file
File diff suppressed because one or more lines are too long
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user