Skip to content

Commit

Permalink
fix(boards): set board name to be link in table in mobile view (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
SelmaBergstrand authored Nov 21, 2024
1 parent b6163ea commit d95a33a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tavla/app/(admin)/boards/components/Column/Name.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ import Link from 'next/link'
function Name({ board }: { board: TBoard }) {
return (
<Column column="name">
<Link
href={`/edit/${board.id}`}
className="hidden sm:block hover:underline"
>
<Link href={`/edit/${board.id}`} className="hover:underline">
{board.meta.title ?? DEFAULT_BOARD_NAME}
</Link>
<p className="block sm:hidden">
{board.meta.title ?? DEFAULT_BOARD_NAME}
</p>
</Column>
)
}
Expand Down

0 comments on commit d95a33a

Please sign in to comment.