Skip to content

Commit

Permalink
fix: openai/ollama/user icon not showing up anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Aug 7, 2024
1 parent 21b8665 commit 55f90e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export function ChatList({
export function SpinnerMessage() {
const { settings } = useSettings();
return (
<div className="group relative flex items-start md:-ml-12">
<div className="group relative flex items-start ">
<div className="flex size-[24px] shrink-0 select-none items-center justify-center rounded-md border bg-primary text-primary-foreground shadow-sm">
{settings.useOllama ? <>🦙</> : <IconOpenAI />}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {

return (
<div
className={cn("group relative mb-4 flex items-start md:-ml-12 w-full")}
className={cn("group relative mb-4 flex items-start w-full")}
{...props}
>
<div
Expand Down Expand Up @@ -52,7 +52,8 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) {
p({ children }) {
return <p className="mb-2 last:mb-0">{children}</p>;
},
a({ node, href, children, ...props }) { // make links open in new tab
a({ node, href, children, ...props }) {
// make links open in new tab
return (
<a
href={href}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function BotMessage({

return (
<div className={cn('group relative flex items-start md:-ml-12', className)}>
<div className="flex size-[24px] shrink-0 select-none items-center justify-center rounded-md border bg-primary text-primary-foreground shadow-sm">
<div className="flex shrink-0 select-none items-center justify-center rounded-md border bg-primary text-primary-foreground shadow-sm">
<IconOpenAI />
</div>
<div className="ml-4 flex-1 space-y-2 overflow-hidden px-1">
Expand Down

0 comments on commit 55f90e4

Please sign in to comment.