Skip to content

Commit

Permalink
Charts: Spacing with tailwind and mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Jan 12, 2024
1 parent 7c328ff commit 1919438
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/react/src/Charts.tsx
Expand Up @@ -11,7 +11,7 @@ const ChartLinks: React.FC = observer(() => {

return Object.keys(PIE_CHART_MAP).map((c, idx: number) => (
<React.Fragment key={c}>
{idx > 0 && ", "}
{idx > 0 && ",\u00A0 "}
<button
type="button"
onClick={() => cvState.setChart(c as unknown as Chart)}
Expand All @@ -35,17 +35,18 @@ const ChartMenu: React.FC = observer(() => {
<div
id="chart-menu"
className={`
${cvState.ui.showChartsMobile ? "active" : ""}
${cvState.ui.showChartsMobile ? "active" : "hidden md:flex"}
pb-0 lg:pb-2`}
pb-0 lg:pb-2
flex
justify-center
`}
>
📊
<span
className="dh-tablet"
title="Lazily loaded, honors filters and scope"
>
{" "}
Chart system (take your pick):{" "}
&nbsp;Chart system (take your pick):&nbsp;
</span>
<ChartLinks />
</div>
Expand Down

0 comments on commit 1919438

Please sign in to comment.