Skip to content

Commit

Permalink
style: paddings, widths and wording
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Jul 19, 2023
1 parent 6b3cd34 commit 7ca154c
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@ const MessageElement: React.FC<Message> = ({ content, additionalContent, isUser,
if (isUser) {
return (
<HStack
padding={4}
gap={4}
paddingBlock={4}
paddingInline={{
base: 2,
md: 4,
}}
gap={{
base: 2,
md: 4,
}}
alignItems='flex-start'
>
<Box
Expand Down Expand Up @@ -91,10 +98,17 @@ const MessageElement: React.FC<Message> = ({ content, additionalContent, isUser,

return (
<HStack
padding={4}
backgroundColor='gray.700'
gap={4}
paddingBlock={4}
paddingInline={{
base: 2,
md: 4,
}}
gap={{
base: 2,
md: 4,
}}
alignItems='flex-start'
backgroundColor='gray.700'
>
<Image
width={{
Expand Down Expand Up @@ -386,7 +400,7 @@ function App() {
.pauseFor(1_000)
// chatiot response
.callFunction(() => {
const content = 'The new rule has been set.<br><strong>John Mill</strong> will be notified if the <strong>Drilling machine #2</strong> is not active enough.'
const content = 'The new rule has been set.<br><strong>John Mill</strong> will be notified if the <strong>Drilling machine #2</strong> is not sufficiently operational.'

setMessages((prevMessages) => {
if (prevMessages.findIndex((message) => message.content === content) !== -1) {
Expand Down Expand Up @@ -436,7 +450,7 @@ function App() {
</VStack>
<VStack
width={{
base: '95%',
base: '100%',
md: '70%',
xl: '50%',
}}
Expand Down

0 comments on commit 7ca154c

Please sign in to comment.