mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
fix: use icon instead of button for ProfileCard links
This commit is contained in:
-28
@@ -56,34 +56,6 @@
|
||||
max-width: calc(50% - 4px);
|
||||
}
|
||||
|
||||
.mdx-profile-card__button {
|
||||
padding: 4px 12px 4px 10px !important;
|
||||
height: 28px !important;
|
||||
max-width: 100% !important;
|
||||
|
||||
> span {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.mdx-profile-card__link__label {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 1;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mdx-profile-card__label {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@include utils.responsive('lg', 'down') {
|
||||
.mdx-profile-card {
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
+2
-26
@@ -90,19 +90,7 @@ export const ProfileCard: React.FC<ProfileCardProps> = ({
|
||||
target="_blank"
|
||||
className={'mdx-profile-card__link'}
|
||||
>
|
||||
<Button
|
||||
size={'small'}
|
||||
variant={'outlined'}
|
||||
className={'mdx-profile-card__button'}
|
||||
>
|
||||
<IconGithub />
|
||||
<Typography
|
||||
variant="body2"
|
||||
className="mdx-profile-card__link__label"
|
||||
>
|
||||
{githubUsername}
|
||||
</Typography>
|
||||
</Button>
|
||||
<IconGithub />
|
||||
</Link>
|
||||
)}
|
||||
|
||||
@@ -112,19 +100,7 @@ export const ProfileCard: React.FC<ProfileCardProps> = ({
|
||||
target="_blank"
|
||||
className={'mdx-profile-card__link'}
|
||||
>
|
||||
<Button
|
||||
size={'small'}
|
||||
variant={'outlined'}
|
||||
className={'mdx-profile-card__button'}
|
||||
>
|
||||
<IconDiscordWhite />
|
||||
<Typography
|
||||
variant="body2"
|
||||
className="mdx-profile-card__link__label"
|
||||
>
|
||||
{discordUsername}
|
||||
</Typography>
|
||||
</Button>
|
||||
<IconDiscordWhite />
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user