Skip to content

Commit

Permalink
Improve mobile version
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Sep 4, 2023
1 parent bc7904a commit 25d5cd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/components/SupportersList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function SupportersList({ list }: SupportersListProps) {
className="even:bg-transparent border-t-0 border-b border-white/20 [.light_&]:border-gray-150 w-full"
key={supporter.name}
>
<td className="py-3 md:py-6 border-0 w-2/6 md:w-1/6 px-6">
<td className="py-3 md:py-6 border-0 w-2/6 md:w-1/6 pl-6">
<Link
href={supporter.url}
target="_blank"
Expand All @@ -33,17 +33,18 @@ export default function SupportersList({ list }: SupportersListProps) {
<img
src={logos[supporter.name]}
alt={supporter.name}
className="min-w-[100px]"
className="w-[100px]"
/>
) : (
supporter.name
)}
</Link>
<p className="flex md:hidden mt-2 text-xs">{supporter.type}</p>
</td>
<td className="py-3 md:py-6 border-0 w-2/6 text-center text-[#9DA6B5]">
<td className="py-3 md:py-6 border-0 hidden md:table-cell md:w-2/6 text-center">
{supporter.type}
</td>
<td className="py-3 md:py-6 border-0 w-2/6 md:w-3/6 text-right text-[#9DA6B5] px-6">
<td className="py-3 md:py-6 border-0 w-4/6 text-right pr-6">
{supporter.pledge}
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/supporters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function SupportersPage() {
</Jumbotron>
<div className="bg-white flex-1 text-gray-600">
<div className="container mx-auto pt-6 pb-10">
<div className="flex gap-6 justify-center bg-white sticky top-0 py-4">
<div className="flex flex-wrap gap-6 justify-center bg-white sticky top-0 py-4">
{types.map(([type, supporters]) => (
<Button
key={type}
Expand Down

0 comments on commit 25d5cd6

Please sign in to comment.