dont pop up keyboard shortcuts
This commit is contained in:
@@ -48,7 +48,8 @@ export const GhostwriterDrawer: React.FC<GhostwriterDrawerProps> = ({
|
|||||||
<SheetTitle>Ghostwriter</SheetTitle>
|
<SheetTitle>Ghostwriter</SheetTitle>
|
||||||
<SheetDescription>
|
<SheetDescription>
|
||||||
The Ghostwriter will use the context of this job and your resume,
|
The Ghostwriter will use the context of this job and your resume,
|
||||||
along with your writing style to help you craft the perfect message.
|
along with your writing style to help you craft the perfect
|
||||||
|
message.
|
||||||
</SheetDescription>
|
</SheetDescription>
|
||||||
</SheetHeader>
|
</SheetHeader>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ export const MessageList: React.FC<MessageListProps> = ({
|
|||||||
streamingMessageId,
|
streamingMessageId,
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<div className='space-y-3'>
|
<div className="space-y-3">
|
||||||
{messages.length > 0 && (
|
{messages.length > 0 &&
|
||||||
messages.map((message) => {
|
messages.map((message) => {
|
||||||
const isUser = message.role === "user";
|
const isUser = message.role === "user";
|
||||||
const isActiveStreaming =
|
const isActiveStreaming =
|
||||||
@@ -32,7 +32,7 @@ export const MessageList: React.FC<MessageListProps> = ({
|
|||||||
: "border-border/60 bg-background"
|
: "border-border/60 bg-background"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div className='mb-1 text-[10px] uppercase tracking-wide text-muted-foreground'>
|
<div className="mb-1 text-[10px] uppercase tracking-wide text-muted-foreground">
|
||||||
{isUser
|
{isUser
|
||||||
? "You"
|
? "You"
|
||||||
: `Ghostwriter${message.version > 1 ? ` v${message.version}` : ""}`}
|
: `Ghostwriter${message.version > 1 ? ` v${message.version}` : ""}`}
|
||||||
@@ -40,15 +40,14 @@ export const MessageList: React.FC<MessageListProps> = ({
|
|||||||
{isActiveStreaming ? (
|
{isActiveStreaming ? (
|
||||||
<StreamingMessage content={message.content} />
|
<StreamingMessage content={message.content} />
|
||||||
) : (
|
) : (
|
||||||
<div className='whitespace-pre-wrap text-sm leading-relaxed text-foreground'>
|
<div className="whitespace-pre-wrap text-sm leading-relaxed text-foreground">
|
||||||
{message.content ||
|
{message.content ||
|
||||||
(message.role === "assistant" ? "..." : "")}
|
(message.role === "assistant" ? "..." : "")}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
})}
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user