Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@internxt/ui",
"version": "0.1.25",
"version": "0.1.26",
"description": "Library of Internxt components",
"repository": {
"type": "git",
Expand Down
14 changes: 7 additions & 7 deletions src/components/mail/cheaps/MessageCheap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,20 @@ const MessageCheap = ({ email, active, selected, participants, onClick, onSelect
<Checkbox checked={selected} onClick={handleSelect} />
</div>
</div>
<div className="flex flex-col w-full">
<div className={`flex flex-row w-full justify-between ${isHighlighted ? 'text-primary' : ''}`}>
<div className="flex flex-row gap-1 w-full max-w-[150px] items-center">
{!email.read && <div className="h-2 w-2 rounded-full bg-primary" />}
<div className="flex flex-col w-full min-w-0">
<div className={`flex flex-row w-full justify-between gap-3 ${isHighlighted ? 'text-primary' : ''}`}>
<div className="flex flex-row gap-1 min-w-0 flex-1 items-center">
{!email.read && <div className="h-2 w-2 rounded-full bg-primary flex-shrink-0" />}
<p className="font-semibold truncate">{displayName}</p>
</div>
<div>
<p className={`text-sm font-medium ${isHighlighted ? 'text-primary' : 'text-gray-50'}`}>
<div className="flex-shrink-0">
<p className={`text-sm font-medium whitespace-nowrap ${isHighlighted ? 'text-primary' : 'text-gray-50'}`}>
{email.createdAt}
</p>
</div>
</div>
<p className={`text-sm font-semibold ${isHighlighted ? 'text-primary' : ''}`}>{email.subject}</p>
<p className={`text-sm ${isHighlighted ? 'text-primary/80' : 'text-gray-50'}`}>{email.body}</p>
<p className={`text-sm line-clamp-2 ${isHighlighted ? 'text-primary/80' : 'text-gray-50'}`}>{email.body}</p>
</div>
</div>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,28 @@ exports[`MessageCheap > should match snapshot 1`] = `
</div>
</div>
<div
class="flex flex-col w-full"
class="flex flex-col w-full min-w-0"
>
<div
class="flex flex-row w-full justify-between "
class="flex flex-row w-full justify-between gap-3 "
>
<div
class="flex flex-row gap-1 w-full max-w-[150px] items-center"
class="flex flex-row gap-1 min-w-0 flex-1 items-center"
>
<div
class="h-2 w-2 rounded-full bg-primary"
class="h-2 w-2 rounded-full bg-primary flex-shrink-0"
/>
<p
class="font-semibold truncate"
>
John Doe
</p>
</div>
<div>
<div
class="flex-shrink-0"
>
<p
class="text-sm font-medium text-gray-50"
class="text-sm font-medium whitespace-nowrap text-gray-50"
>
2024-01-15
</p>
Expand All @@ -88,7 +90,7 @@ exports[`MessageCheap > should match snapshot 1`] = `
Test Subject
</p>
<p
class="text-sm text-gray-50"
class="text-sm line-clamp-2 text-gray-50"
>
This is a test email body
</p>
Expand Down Expand Up @@ -150,26 +152,28 @@ exports[`MessageCheap > should match snapshot 1`] = `
</div>
</div>
<div
class="flex flex-col w-full"
class="flex flex-col w-full min-w-0"
>
<div
class="flex flex-row w-full justify-between "
class="flex flex-row w-full justify-between gap-3 "
>
<div
class="flex flex-row gap-1 w-full max-w-[150px] items-center"
class="flex flex-row gap-1 min-w-0 flex-1 items-center"
>
<div
class="h-2 w-2 rounded-full bg-primary"
class="h-2 w-2 rounded-full bg-primary flex-shrink-0"
/>
<p
class="font-semibold truncate"
>
John Doe
</p>
</div>
<div>
<div
class="flex-shrink-0"
>
<p
class="text-sm font-medium text-gray-50"
class="text-sm font-medium whitespace-nowrap text-gray-50"
>
2024-01-15
</p>
Expand All @@ -181,7 +185,7 @@ exports[`MessageCheap > should match snapshot 1`] = `
Test Subject
</p>
<p
class="text-sm text-gray-50"
class="text-sm line-clamp-2 text-gray-50"
>
This is a test email body
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,28 @@ exports[`TrayList > should match snapshot 1`] = `
</div>
</div>
<div
class="flex flex-col w-full"
class="flex flex-col w-full min-w-0"
>
<div
class="flex flex-row w-full justify-between "
class="flex flex-row w-full justify-between gap-3 "
>
<div
class="flex flex-row gap-1 w-full max-w-[150px] items-center"
class="flex flex-row gap-1 min-w-0 flex-1 items-center"
>
<div
class="h-2 w-2 rounded-full bg-primary"
class="h-2 w-2 rounded-full bg-primary flex-shrink-0"
/>
<p
class="font-semibold truncate"
>
John Doe
</p>
</div>
<div>
<div
class="flex-shrink-0"
>
<p
class="text-sm font-medium text-gray-50"
class="text-sm font-medium whitespace-nowrap text-gray-50"
>
2024-01-15
</p>
Expand All @@ -84,7 +86,7 @@ exports[`TrayList > should match snapshot 1`] = `
Test Subject 1
</p>
<p
class="text-sm text-gray-50"
class="text-sm line-clamp-2 text-gray-50"
>
This is test email 1
</p>
Expand Down Expand Up @@ -132,23 +134,25 @@ exports[`TrayList > should match snapshot 1`] = `
</div>
</div>
<div
class="flex flex-col w-full"
class="flex flex-col w-full min-w-0"
>
<div
class="flex flex-row w-full justify-between "
class="flex flex-row w-full justify-between gap-3 "
>
<div
class="flex flex-row gap-1 w-full max-w-[150px] items-center"
class="flex flex-row gap-1 min-w-0 flex-1 items-center"
>
<p
class="font-semibold truncate"
>
Jane Smith
</p>
</div>
<div>
<div
class="flex-shrink-0"
>
<p
class="text-sm font-medium text-gray-50"
class="text-sm font-medium whitespace-nowrap text-gray-50"
>
2024-01-16
</p>
Expand All @@ -160,7 +164,7 @@ exports[`TrayList > should match snapshot 1`] = `
Test Subject 2
</p>
<p
class="text-sm text-gray-50"
class="text-sm line-clamp-2 text-gray-50"
>
This is test email 2
</p>
Expand Down Expand Up @@ -222,26 +226,28 @@ exports[`TrayList > should match snapshot 1`] = `
</div>
</div>
<div
class="flex flex-col w-full"
class="flex flex-col w-full min-w-0"
>
<div
class="flex flex-row w-full justify-between "
class="flex flex-row w-full justify-between gap-3 "
>
<div
class="flex flex-row gap-1 w-full max-w-[150px] items-center"
class="flex flex-row gap-1 min-w-0 flex-1 items-center"
>
<div
class="h-2 w-2 rounded-full bg-primary"
class="h-2 w-2 rounded-full bg-primary flex-shrink-0"
/>
<p
class="font-semibold truncate"
>
John Doe
</p>
</div>
<div>
<div
class="flex-shrink-0"
>
<p
class="text-sm font-medium text-gray-50"
class="text-sm font-medium whitespace-nowrap text-gray-50"
>
2024-01-15
</p>
Expand All @@ -253,7 +259,7 @@ exports[`TrayList > should match snapshot 1`] = `
Test Subject 1
</p>
<p
class="text-sm text-gray-50"
class="text-sm line-clamp-2 text-gray-50"
>
This is test email 1
</p>
Expand Down Expand Up @@ -301,23 +307,25 @@ exports[`TrayList > should match snapshot 1`] = `
</div>
</div>
<div
class="flex flex-col w-full"
class="flex flex-col w-full min-w-0"
>
<div
class="flex flex-row w-full justify-between "
class="flex flex-row w-full justify-between gap-3 "
>
<div
class="flex flex-row gap-1 w-full max-w-[150px] items-center"
class="flex flex-row gap-1 min-w-0 flex-1 items-center"
>
<p
class="font-semibold truncate"
>
Jane Smith
</p>
</div>
<div>
<div
class="flex-shrink-0"
>
<p
class="text-sm font-medium text-gray-50"
class="text-sm font-medium whitespace-nowrap text-gray-50"
>
2024-01-16
</p>
Expand All @@ -329,7 +337,7 @@ exports[`TrayList > should match snapshot 1`] = `
Test Subject 2
</p>
<p
class="text-sm text-gray-50"
class="text-sm line-clamp-2 text-gray-50"
>
This is test email 2
</p>
Expand Down
Loading