copy improvement
This commit is contained in:
parent
8b8120bf1d
commit
8d2d80fcc1
@ -47,7 +47,8 @@ export const GhostwriterDrawer: React.FC<GhostwriterDrawerProps> = ({
|
||||
<SheetHeader>
|
||||
<SheetTitle>Ghostwriter</SheetTitle>
|
||||
<SheetDescription>
|
||||
{job && `${job.title} at ${job.employer}.`}
|
||||
The Ghostwriter will use the context of this job and your resume,
|
||||
along with your writing style to help you craft the perfect message.
|
||||
</SheetDescription>
|
||||
</SheetHeader>
|
||||
</div>
|
||||
|
||||
@ -14,13 +14,8 @@ export const MessageList: React.FC<MessageListProps> = ({
|
||||
streamingMessageId,
|
||||
}) => {
|
||||
return (
|
||||
<div className="space-y-3">
|
||||
{messages.length === 0 ? (
|
||||
<div className="rounded-md border border-dashed border-border/60 p-3 text-xs text-muted-foreground">
|
||||
Ask for interview prep, response drafts, or application strategy for
|
||||
this job.
|
||||
</div>
|
||||
) : (
|
||||
<div className='space-y-3'>
|
||||
{messages.length > 0 && (
|
||||
messages.map((message) => {
|
||||
const isUser = message.role === "user";
|
||||
const isActiveStreaming =
|
||||
@ -37,7 +32,7 @@ export const MessageList: React.FC<MessageListProps> = ({
|
||||
: "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
|
||||
? "You"
|
||||
: `Ghostwriter${message.version > 1 ? ` v${message.version}` : ""}`}
|
||||
@ -45,7 +40,7 @@ export const MessageList: React.FC<MessageListProps> = ({
|
||||
{isActiveStreaming ? (
|
||||
<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.role === "assistant" ? "..." : "")}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user