Skip to content

Commit

Permalink
style: chat ui improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Jul 5, 2024
1 parent 89fffea commit 6050784
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/contacts/Contacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const Contacts = () => {
</div>
</div>

<div className="hidden w-full flex-col gap-2 md:flex">
<div className="hidden h-[calc(100dvh-130px)] w-full flex-col gap-2 overflow-y-auto md:flex">
{contacts.length ? (
contacts.map(c => <ContactCard key={c.id} contact={c} />)
) : (
Expand Down
5 changes: 4 additions & 1 deletion src/views/contacts/Messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ export const Messages = () => {
className="relative flex h-[calc(100dvh-170px)] flex-col overflow-y-auto rounded-xl bg-muted/50 md:h-[calc(100dvh-86px)] lg:col-span-3"
>
{!!currentContact?.user ? (
<Badge variant="secondary" className="absolute right-3 top-3">
<Badge
variant="secondary"
className="sticky left-full top-3 mr-3 w-fit"
>
{currentContact.user}
</Badge>
) : null}
Expand Down

0 comments on commit 6050784

Please sign in to comment.