Skip to content

Commit

Permalink
fix: member card adaptive screen size problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ozline committed Jun 7, 2024
1 parent ade5418 commit 4345f03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Member/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function Component() {
))}
</div>
{/* 成员展示 */}
<div className="grid grid-cols-2 md:grid-cols-6 gap-6">
<div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-6">
{filteredMembers.
sort(compareMembers).
map((member) => (
Expand All @@ -121,7 +121,7 @@ export default function Component() {
{member.github !== undefined && (
<a
href={githubPrefix + member.github}
className="flex items-center justify-center text-[var(--ifm-color-primary)] hover:text-[var(--ifm-color-primary-light)] transition duration-300 text-xs"
className="flex items-center justify-center text-[var(--ifm-color-primary)] hover:text-[var(--ifm-color-primary-light)] transition duration-300 text-xs truncate max-w-xs"
>
<GithubIcon className="w-3 h-3 mr-1" />
{member.github}
Expand All @@ -131,7 +131,7 @@ export default function Component() {
{member.blog && (
<a
href={member.blog.url}
className="flex items-center justify-center text-[var(--ifm-color-primary)] hover:text-[var(--ifm-color-primary-light)] transition duration-300 text-xs"
className="flex items-center justify-center text-[var(--ifm-color-primary)] hover:text-[var(--ifm-color-primary-light)] transition duration-300 text-xs truncate max-w-xs"
>
<BlogIcon className="w-3 h-3 mr-1" />
{member.blog.display}
Expand Down

0 comments on commit 4345f03

Please sign in to comment.