diff --git a/components/ComponentWrapper.module.css b/components/ComponentWrapper.module.css index d10c7c4..70da553 100644 --- a/components/ComponentWrapper.module.css +++ b/components/ComponentWrapper.module.css @@ -10,7 +10,6 @@ composes: sideWrapperCommon; align-self: end; margin-right: 0; - padding-right: 0; border-radius: calc(200rem / 16) 0 0 calc(200rem / 16); flex-direction: row-reverse; padding-right: calc(50rem / 16); @@ -20,7 +19,6 @@ composes: sideWrapperCommon; align-self: start; margin-left: 0; - padding-left: 0; border-radius: 0 calc(200rem / 16) calc(200rem / 16) 0; flex-direction: row; padding-left: calc(50rem / 16); @@ -42,7 +40,6 @@ */ margin: 0 0 calc(45rem / 16) 0; align-self: center; - padding: 0 15%; } .wrapperCenter .internalWrapper { @@ -82,10 +79,19 @@ .internalWrapper { padding: calc(20rem / 16); + /* Without this, some graphs will have an horizontal scroll bar thats not needed */ + overflow-x: auto; } .internalWrapper p { font-size: calc(24rem / 16); opacity: .85; line-height: 1.25; +} + +.textWrapper { + /* We add this since we want the text to shrink before the graph ever shrinks */ + flex-shrink: 1000; + /* So that text is still readable in the awkward 1000px width screen size */ + min-width: 200px; } \ No newline at end of file diff --git a/components/ComponentWrapper.tsx b/components/ComponentWrapper.tsx index 1d98bee..dcb5a4b 100644 --- a/components/ComponentWrapper.tsx +++ b/components/ComponentWrapper.tsx @@ -33,7 +33,7 @@ export function ComponentWrapper({ ${bodyText ? "" : styles.wrapperNoBodyText} `} > -
{bodyText}
: null}