Fix styling

This commit is contained in:
blankhex committed 2026-10-23 13:45:14 +03:00
1 parent fef1abade8
commit 5ad0005692
2 files changed
+9 -1

No files matched your search

+4 -1
View File
@@ -185,10 +185,13 @@ export default function ProfilePage({ user, onUserChange }) {
onChange={uploadAvatar} onChange={uploadAvatar}
/> />
<p className="hint"> <p className="hint">
{formatTypes(avatarLimits.allowedMimeTypes)}. Max {formatBytes(avatarLimits.maxSizeBytes)} {formatTypes(avatarLimits.allowedMimeTypes)}.
<span className="hint-line">
Max {formatBytes(avatarLimits.maxSizeBytes)}
{avatarLimits.maxWidth && avatarLimits.maxHeight {avatarLimits.maxWidth && avatarLimits.maxHeight
? `, up to ${avatarLimits.maxWidth}\u00d7${avatarLimits.maxHeight} px.` ? `, up to ${avatarLimits.maxWidth}\u00d7${avatarLimits.maxHeight} px.`
: '.'} : '.'}
</span>
</p> </p>
{user.hasAvatar && ( {user.hasAvatar && (
<button className="btn-danger-sm" type="button" onClick={removeAvatar}> <button className="btn-danger-sm" type="button" onClick={removeAvatar}>
+5
View File
@@ -348,6 +348,11 @@ input[type='checkbox'] {
font-size: 0.8rem; font-size: 0.8rem;
} }
/* Puts each limit on its own line so long hints do not overflow the card. */
.hint-line {
display: block;
}
.error { .error {
color: var(--danger); color: var(--danger);
font-size: 0.85rem; font-size: 0.85rem;