From 7769f9c9a121652cf27a95101ad04a0e6fca1433 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Tue, 11 Oct 2022 23:58:19 -0700 Subject: [PATCH] Fix answer panel coloration to not be weird and work on Firefox --- web/components/answers/answers-panel.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/web/components/answers/answers-panel.tsx b/web/components/answers/answers-panel.tsx index 69aec8b2..a665a921 100644 --- a/web/components/answers/answers-panel.tsx +++ b/web/components/answers/answers-panel.tsx @@ -191,8 +191,9 @@ function OpenAnswer(props: { const [open, setOpen] = useState(false) const color = colorIndex != undefined && colorIndex < CHOICE_ANSWER_COLORS.length - ? CHOICE_ANSWER_COLORS[colorIndex] - : '#B1B1C7' + ? CHOICE_ANSWER_COLORS[colorIndex] + '55' // semi-transparent + : '#B1B1C755' + const colorWidth = 100 * Math.max(prob, 0.01) return ( @@ -208,9 +209,12 @@ function OpenAnswer(props: { @@ -238,11 +242,6 @@ function OpenAnswer(props: { )} -
)