making colors same

This commit is contained in:
ingawei 2022-10-12 15:55:22 -07:00
parent 67349bca03
commit 6b2e7514de
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@ import { ChatIcon } from '@heroicons/react/outline'
export function getAnswerColor(answer: Answer, answersArray: Answer[]) {
const colorIndex = answersArray.indexOf(answer)
return colorIndex != undefined && colorIndex < CHOICE_ANSWER_COLORS.length
? CHOICE_ANSWER_COLORS[colorIndex] // semi-transparent
: '#B1B1C755'
? CHOICE_ANSWER_COLORS[colorIndex]
: '#B1B1C7'
}
export function AnswersPanel(props: {
@ -218,7 +218,7 @@ function OpenAnswer(props: {
tradingAllowed(contract) ? 'text-greyscale-7' : 'text-greyscale-5'
)}
style={{
background: `linear-gradient(to right, ${color} ${colorWidth}%, #FBFBFF ${colorWidth}%)`,
background: `linear-gradient(to right, ${color}90 ${colorWidth}%, #FBFBFF ${colorWidth}%)`,
}}
>
<Row className="z-20 -mb-1 justify-between gap-2 py-2 px-3">

View File

@ -51,7 +51,7 @@ export function CommentsAnswer(props: {
<div
className="w-2"
style={{
background: color ? color : '#B1B1C755',
background: color ? color : '#B1B1C7',
}}
/>
<Col className="w-fit gap-1 bg-gray-100 py-2 pl-2 pr-4">