Highlight previous user input (#2507)
Co-authored-by: Allen Hutchison <adh@google.com>
This commit is contained in:
parent
2096f971cd
commit
1732e90d52
|
@ -17,7 +17,15 @@ export const UserMessage: React.FC<UserMessageProps> = ({ text }) => {
|
||||||
const prefixWidth = prefix.length;
|
const prefixWidth = prefix.length;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box flexDirection="row" marginY={1}>
|
<Box
|
||||||
|
borderStyle="round"
|
||||||
|
borderColor={Colors.Gray}
|
||||||
|
flexDirection="row"
|
||||||
|
paddingX={2}
|
||||||
|
paddingY={0}
|
||||||
|
marginY={1}
|
||||||
|
alignSelf="flex-start"
|
||||||
|
>
|
||||||
<Box width={prefixWidth}>
|
<Box width={prefixWidth}>
|
||||||
<Text color={Colors.Gray}>{prefix}</Text>
|
<Text color={Colors.Gray}>{prefix}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
Loading…
Reference in New Issue