Skip to content

Commit

Permalink
Fix share info text
Browse files Browse the repository at this point in the history
  • Loading branch information
KatharinaSimma committed Apr 30, 2023
1 parent b27db37 commit 573957d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/[listsId]/SingleViewList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default function SingleViewList(props: Props) {
<>
<div className="flex flex-wrap items-center gap-1 my-2 justify-items-center">
{data.singleListWithTasks.sharedUsers.length > 1 && (
<ul className="w-full">
<div className="w-full">
You
{data.singleListWithTasks.sharedUsers.map((user: User) => {
if (props.currentUser === user.username) {
Expand All @@ -204,14 +204,14 @@ export default function SingleViewList(props: Props) {
<span key={`shared-with-${user.id}`}>
{' '}
and{' '}
<strong className="text-primary-focus">
<strong className="p-1 m-1 border">
{user.username}{' '}
</strong>
</span>
);
})}
share this list.
</ul>
</div>
)}
{onShareError ? <p className="text-error">{onShareError}</p> : null}
</div>
Expand Down

0 comments on commit 573957d

Please sign in to comment.