Skip to content

Commit

Permalink
Merge pull request #13 from sendbird/fix/remove-default-application-i…
Browse files Browse the repository at this point in the history
…d-and-text-align

Fix build script to exclude when build and set text align
  • Loading branch information
AhyoungRyu authored Jul 21, 2023
2 parents 5e6bf3e + 1d38d8e commit ab0971c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"scripts": {
"dev": "vite",
"build:types": "rm -rf dist; rm -rf icons; rm -rf icons; tsc; cp -R src/icons icons; cp -R src/icons dist/icons ; cp -R src/css css; cp -R src/css dist/css",
"prebuild": "rm -rf ./dist",
"build": "npm run prebuild && tsc-silent -p './tsconfig.json' --suppress @ && vite build",
"prebuild": "rm -rf ./dist && mv .env .env_temp || true",
"postbuild": "mv .env_temp .env || true",
"build": "npm run prebuild && tsc-silent -p './tsconfig.json' --suppress @ && vite build && npm run postbuild",
"build:pages": "npm run prebuild && tsc-silent -p './tsconfig.json' --suppress @ && vite build --config vite.config.pages.ts",
"lint": "npx eslint src",
"lint:fix": "npm run lint -- --fix",
Expand Down
9 changes: 8 additions & 1 deletion src/components/BotMessageWithBodyInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ export default function BotMessageWithBodyInput(props: Props) {
/>
</ImageContainer>
<BodyContainer style={bodyStyle ?? {}}>
<Sender isStartingPage={messageCount === 1}>{botUser.nickname}</Sender>
<Sender
style={{
textAlign: 'left',
}}
isStartingPage={messageCount === 1}
>
{botUser.nickname}
</Sender>
{bodyComponent}
</BodyContainer>
<SentTime>{formatCreatedAtToAMPM(message.createdAt)}</SentTime>
Expand Down

0 comments on commit ab0971c

Please sign in to comment.