From 51bdfc915da8b11bf2345421030569a558564195 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 19 May 2022 17:50:46 -0400 Subject: [PATCH] tweak: minor aesthetic tweaks --- .../components/HistoryChart/InnerChart.tsx | 16 +++++++++------- src/web/questions/pages/QuestionPage.tsx | 8 ++++---- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/web/questions/components/HistoryChart/InnerChart.tsx b/src/web/questions/components/HistoryChart/InnerChart.tsx index b6ad152..2528166 100644 --- a/src/web/questions/components/HistoryChart/InnerChart.tsx +++ b/src/web/questions/components/HistoryChart/InnerChart.tsx @@ -31,13 +31,15 @@ const getVictoryGroup = ({ name={`line-${i}`} style={{ data: { - strokeOpacity: highlight ? 1 : 0.5, + // strokeOpacity: highlight ? 1 : 0.5, + strokeOpacity: 0.6, + strokeWidth: 3, }, }} /> (active || highlight ? 3.75 : 3)} + size={({ active }) => (active || highlight ? 0 : 0)} //(active || highlight ? 3.75 : 3)} /> ); @@ -56,9 +58,9 @@ export const InnerChart: React.FC = ({ maxProbability < 0.5 ? Math.round(10 * (maxProbability + 0.05)) / 10 : 1; const padding = { top: 20, - bottom: 65, - left: 60, - right: 5, + bottom: 75, + left: 70, + right: 17, }; return ( @@ -135,8 +137,8 @@ export const InnerChart: React.FC = ({ }} tickLabelComponent={ diff --git a/src/web/questions/pages/QuestionPage.tsx b/src/web/questions/pages/QuestionPage.tsx index 17347d2..573e189 100644 --- a/src/web/questions/pages/QuestionPage.tsx +++ b/src/web/questions/pages/QuestionPage.tsx @@ -58,17 +58,17 @@ const LargeQuestionCard: React.FC<{ target="_blank" > {question.title}{" "} - -