Skip to content

Commit

Permalink
mobile usability fixes
Browse files Browse the repository at this point in the history
more todo here
  • Loading branch information
nofurtherinformation committed Aug 27, 2024
1 parent cfe39b4 commit 32f5746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/ReportLayout/ReportRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const ReportRenderer: React.FC<{
</div>
</div>
)}
<div className="mt-8 grid gap-8 lg:grid-cols-4">
<div className="mt-8 lg:grid lg:grid-cols-4 lg:gap-8">
{/* first grid col */}
<div className="prose top-0 col-span-1 hidden h-min bg-white/50 p-4 shadow-xl lg:sticky lg:block">
<h3>Report Sections</h3>
Expand Down
6 changes: 3 additions & 3 deletions components/TimeseriesChart/Renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const TimeseriesChart: React.FC<TimeseriesChartProps> = ({ id, placeName }) => {
}, [dispatch, tsVariable, timeseriesLoaded, dbStatus])
const Labels = labels[tsVariable]
const toggleGroupItemClasses =
"px-4 hover:bg-violet3 color-mauve11 data-[state=on]:bg-violet6 data-[state=on]:text-violet12 flex h-[35px] items-center justify-center bg-white text-base leading-4 first:rounded-l last:rounded-r focus:z-10 focus:shadow-[0_0_0_2px] focus:shadow-black focus:outline-none"
"my-4 lg:my-0 px-4 hover:bg-violet3 color-mauve11 data-[state=on]:bg-violet6 data-[state=on]:text-violet12 flex h-[35px] items-center justify-center bg-white text-base leading-4 first:rounded-l last:rounded-r focus:z-10 focus:shadow-[0_0_0_2px] focus:shadow-black focus:outline-none"

return (
<div>
Expand All @@ -69,7 +69,7 @@ const TimeseriesChart: React.FC<TimeseriesChartProps> = ({ id, placeName }) => {
</h3>
<div className="relative mb-4 w-full">
<ToggleGroup.Root
className="inline-flex space-x-px rounded bg-mauve6 shadow-[0_2px_10px] shadow-blackA4"
className="contents space-x-px rounded bg-mauve6 shadow-[0_2px_10px] shadow-blackA4 lg:inline-flex"
type="single"
defaultValue="hhi"
aria-label="Text alignment"
Expand All @@ -91,7 +91,7 @@ const TimeseriesChart: React.FC<TimeseriesChartProps> = ({ id, placeName }) => {
</ToggleGroup.Item>
</ToggleGroup.Root>
</div>
<div className="relative h-[50vh] w-full" ref={parentRef}>
<div className="relative h-[100vh] w-full lg:h-[50vh]" ref={parentRef}>
{!ready && <p>Loading data please wait</p>}
{isReadyTract && (
<LineChart
Expand Down

0 comments on commit 32f5746

Please sign in to comment.