Fix styling
This commit is contained in:
1 parent
fef1abade8
commit
5ad0005692
2 files changed
+12
-4
No files matched your search
@@ -185,10 +185,13 @@ export default function ProfilePage({ user, onUserChange }) {
|
||||
onChange={uploadAvatar}
|
||||
/>
|
||||
<p className="hint">
|
||||
{formatTypes(avatarLimits.allowedMimeTypes)}. Max {formatBytes(avatarLimits.maxSizeBytes)}
|
||||
{avatarLimits.maxWidth && avatarLimits.maxHeight
|
||||
? `, up to ${avatarLimits.maxWidth}\u00d7${avatarLimits.maxHeight} px.`
|
||||
: '.'}
|
||||
{formatTypes(avatarLimits.allowedMimeTypes)}.
|
||||
<span className="hint-line">
|
||||
Max {formatBytes(avatarLimits.maxSizeBytes)}
|
||||
{avatarLimits.maxWidth && avatarLimits.maxHeight
|
||||
? `, up to ${avatarLimits.maxWidth}\u00d7${avatarLimits.maxHeight} px.`
|
||||
: '.'}
|
||||
</span>
|
||||
</p>
|
||||
{user.hasAvatar && (
|
||||
<button className="btn-danger-sm" type="button" onClick={removeAvatar}>
|
||||
|
||||
@@ -348,6 +348,11 @@ input[type='checkbox'] {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* Puts each limit on its own line so long hints do not overflow the card. */
|
||||
.hint-line {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: var(--danger);
|
||||
font-size: 0.85rem;
|
||||
|
||||
Reference in new issue
Block a user