Skip to content

Commit

Permalink
Contrast edit
Browse files Browse the repository at this point in the history
  • Loading branch information
dqii committed Sep 23, 2024
1 parent d648e92 commit 7b66dbb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/components/MessageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const MessageView = ({ message, messages, layer }: MessageViewProps) => {
const [collapsed, setCollapsed] = useState(layer > 3);
const replies = messages.filter((m) => m.inReplyTo === message.id);
return (
<div className='text-sm'>
<>
<div className='rounded border border-slate-300 shadow drop-shadow w-full'>
<div className='flex text-sm bg-slate-300 px-4 py-2'>
<p className='mr-auto'>{message.fromName}</p>
Expand Down Expand Up @@ -111,7 +111,7 @@ const MessageView = ({ message, messages, layer }: MessageViewProps) => {
</div>
</div>
)}
</div>
</>
);
};

Expand Down
18 changes: 11 additions & 7 deletions src/components/ThreadPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,23 @@ const ThreadPreview = ({
{list ? '#' + list : ''}
</div>
)}
<div
className={classNames(
'flex text-xs',
font === 'ibm-plex-mono' ? 'mb-1.5' : 'mb-1'
)}
>
<div className='flex text-xs mb-1.5'>
<p>{thread.fromName || thread.fromAddress}</p>
{thread.count > 1 && (
<p className='ml-2 text-stone-400'>{thread.count}</p>
)}
<p className='ml-auto'>{formatDateAsYYYYMMDD(thread.ts)}</p>
</div>
<p className='font-medium text-sm'>{thread.subject}</p>
<p
className={classNames(
'text-sm',
isActive
? 'text-white font-medium'
: 'hover:text-stone-200 text-stone-300'
)}
>
{thread.subject}
</p>
{thread.preview && (
<p
className={classNames(
Expand Down
7 changes: 5 additions & 2 deletions src/components/ThreadView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const ThreadView = ({
const href = `https://www.postgresql.org/message-id/${threadId}`;

return (
<div className='px-12 pt-8 pb-8'>
<div className='px-12 pt-8 pb-8 max-w-5xl w-full mx-auto'>
<div className='mb-8'>
{back && (
<p className='text-slate-600 mb-2' onClick={back}>
Expand All @@ -62,7 +62,10 @@ const ThreadView = ({
<div className='mt-2 w-full h-0.5 bg-slate-300' />
</div>

<MessageView message={message} messages={messages} layer={0} />
<div className='text-sm'>
<MessageView message={message} messages={messages} layer={0} />
</div>

<div className='mt-12 text-sm font-medium'>
Source:{' '}
<Link href={href} className='text-slate-500'>
Expand Down

0 comments on commit 7b66dbb

Please sign in to comment.