Quick message patch
This commit is contained in:
parent
7a922a5978
commit
633e2dcd83
2 changed files with 4 additions and 2 deletions
|
|
@ -80,7 +80,9 @@ export default function Message(props: {
|
|||
<div
|
||||
className={`flex gap-1 items-center justify-center max-w-[80%] rounded-lg px-2 py-px whitespace-pre-wrap wrap-break-word ${
|
||||
props.message.sent_by_self
|
||||
? "bg-primary text-primary-foreground"
|
||||
? props.message.failed
|
||||
? "bg-destructive/75 text-destructive-foreground"
|
||||
: "bg-primary text-primary-foreground"
|
||||
: "bg-muted"
|
||||
} ${!isReady && "animate-pulse"}`}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ export type LiveMessage = RawMessage & {
|
|||
localId: string;
|
||||
};
|
||||
|
||||
export const PAGE_SIZE = 25;
|
||||
export const PAGE_SIZE = 50;
|
||||
|
|
|
|||
Loading…
Reference in a new issue