Skip to content

Commit

Permalink
adjust styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Jul 5, 2024
1 parent bdfbce5 commit 9f8d104
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/ChatPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ const builtInCssClasses: ChatPanelCssClasses = withStylelessCssClasses(
{
container: "h-full w-full flex flex-col relative shadow-2xl bg-white",
messagesScrollContainer: "flex flex-col mt-auto overflow-hidden",
messagesContainer: "flex flex-col gap-y-1 px-4 overflow-auto",
messagesContainer: "flex flex-col gap-y-1 px-4 overflow-auto [&>*:first-child]:mt-3",
inputContainer: "w-full p-4",
messageBubbleCssClasses: {
topContainer: "first:mt-4",
topContainer: "mt-1",
},
footer: "text-center text-slate-400 rounded-b-3xl px-4 pb-4 text-[12px]",
}
Expand Down
1 change: 0 additions & 1 deletion src/components/ChatPopUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const builtInCssClasses: ChatPopUpCssClasses = withStylelessCssClasses(
panelCssClasses: {
container: "max-[480px]:rounded-none rounded-3xl",
inputContainer: "max-[480px]:rounded-none rounded-b-3xl",
messagesScrollContainer: "rounded-b-3xl",
},
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessageBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const builtInCssClasses: MessageBubbleCssClasses =
text__bot: "text-slate-900",
text__user: "text-white break-words",
timestamp:
"w-fit my-0.5 ml-4 @lg:ml-0 text-slate-400 text-[10px] @[480px]:text-[13px] opacity-0 peer-hover:opacity-100 duration-200 whitespace-pre-wrap",
"w-fit ml-4 @lg:ml-0 text-slate-400 text-[10px] @[480px]:text-[13px] opacity-0 peer-hover:opacity-100 duration-200 whitespace-pre-wrap",
timestamp__bot: "",
timestamp__user: "ml-auto",
feedbackButtonsCssClasses: {},
Expand Down
6 changes: 3 additions & 3 deletions test-site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f8d104

Please sign in to comment.