From 4da4885d6a15faf7035d51e9463ac2fbbd7571bc Mon Sep 17 00:00:00 2001 From: Tianwei She Date: Wed, 18 Oct 2023 21:20:31 -0700 Subject: [PATCH 1/2] Add AI movie schema --- src/App.css | 10 +++++++ src/App.tsx | 5 +++- src/schema.json | 45 +++++++++++++++------------- src/uischema.json | 75 +++++++++++++++++++++++------------------------ 4 files changed, 74 insertions(+), 61 deletions(-) diff --git a/src/App.css b/src/App.css index a40c9c0..d718719 100644 --- a/src/App.css +++ b/src/App.css @@ -26,6 +26,16 @@ html { font-size: large; } +.dataContent { + max-width: 700px; /* or whatever width you prefer */ + overflow-x: auto; /* adds a scrollbar if content overflows the width */ +} + +.boundData { + white-space: pre-wrap; /* respects whitespace but allows wrapping */ + word-wrap: break-word; /* breaks long words */ +} + @keyframes App-logo-spin { from { transform: rotate(0deg); diff --git a/src/App.tsx b/src/App.tsx index c92123d..9850fc0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -84,8 +84,11 @@ const App = () => { Bound data -
+ {/*
{stringifiedData}
+
*/} +
+
{stringifiedData}