[Glitch] Fix styling of follow requests

Port 69fdefb376da47ad38d04b69108729ab675d7b68 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire 2026-06-16 14:04:49 +02:00
parent 6b4e8c7467
commit 5dfb14f518
4 changed files with 28 additions and 32 deletions

View File

@ -1,9 +1,10 @@
import classNames from 'classnames';
import { useAppSelector } from '../store';
import { useAppSelector } from '../../store';
import { EmojiHTML } from '../emoji/html';
import { useElementHandledLink } from '../status/handled_link';
import { EmojiHTML } from './emoji/html';
import { useElementHandledLink } from './status/handled_link';
import classes from './styles.module.scss';
interface AccountBioProps {
className?: string;
@ -12,7 +13,7 @@ interface AccountBioProps {
}
export const AccountBio: React.FC<AccountBioProps> = ({
className,
className = classes.bio,
accountId,
showDropdown = false,
}) => {

View File

@ -0,0 +1,22 @@
.bio {
font-size: 15px;
color: var(--color-text-primary);
unicode-bidi: plaintext;
overflow-wrap: anywhere;
p {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
:any-link {
color: var(--color-text-status-links);
&:hover {
text-decoration: none;
}
}
}

View File

@ -148,11 +148,7 @@ export const AccountHeader: React.FC<{
<div className={classes.bioButtonsWrapper}>
{me && account.id !== me && <AccountNote accountId={accountId} />}
<AccountBio
showDropdown
accountId={accountId}
className={classes.bio}
/>
<AccountBio showDropdown accountId={accountId} />
<AccountHeaderFields accountId={accountId} />

View File

@ -274,29 +274,6 @@ $button-fallback-breakpoint: $button-breakpoint + 55px;
}
}
.bio {
font-size: 15px;
color: var(--color-text-primary);
unicode-bidi: plaintext;
overflow-wrap: anywhere;
p {
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
:any-link {
color: var(--color-text-status-links);
&:hover {
text-decoration: none;
}
}
}
.familiarFollowers {
margin-top: 16px;
}