text color + custom style fixes (#1626)

This commit is contained in:
Dawood Khan 2022-06-23 23:55:16 -04:00 committed by GitHub
parent 51c8c34486
commit b11ed64a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@
if (!style.color_map) {
return ["#fb923c", "#9ca3af"];
} else {
return [get_color(style.color_map.bot), get_color(style.color_map.user)];
return [get_color(style.color_map[0]), get_color(style.color_map[1])];
}
}
</script>
@ -53,7 +53,7 @@
</div>
<div
data-testid="bot"
class="px-3 py-2 rounded-[22px] rounded-bl-none place-self-start text-whitetext-sm"
class="px-3 py-2 rounded-[22px] rounded-bl-none place-self-start text-white text-sm"
style={"background-color:" + _colors[1]}
>
{message[1]}