fix(ui): corrected background color check in user message components (#25880)

This commit is contained in:
Dev Randalpura
2026-04-23 17:29:11 -04:00
committed by GitHub
parent 27927c55e5
commit 69150e87b2
9 changed files with 173 additions and 3 deletions
@@ -27,7 +27,9 @@ export const UserMessage: React.FC<UserMessageProps> = ({ text, width }) => {
const prefixWidth = prefix.length;
const isSlashCommand = checkIsSlashCommand(text);
const config = useConfig();
const useBackgroundColor = config.getUseBackgroundColor();
const useBackgroundColorSetting = config.getUseBackgroundColor();
const useBackgroundColor =
useBackgroundColorSetting && !!theme.background.message;
const textColor = isSlashCommand ? theme.text.accent : theme.text.primary;