mirror of
https://github.com/go-gitea/gitea
synced 2024-11-21 18:55:35 +01:00
Add Avatar Border for Visual Consistency
This commit is contained in:
parent
355889dbc2
commit
7831654e38
2 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,7 @@ import (
|
|||
|
||||
const (
|
||||
// DefaultAvatarClass is the default class of a rendered avatar
|
||||
DefaultAvatarClass = "ui avatar tw-align-middle"
|
||||
DefaultAvatarClass = "ui avatar border tw-align-middle"
|
||||
// DefaultAvatarPixelSize is the default size in pixels of a rendered avatar
|
||||
DefaultAvatarPixelSize = 28
|
||||
)
|
||||
|
|
|
@ -462,6 +462,7 @@ img.ui.avatar,
|
|||
.ui.avatar img,
|
||||
.ui.avatar svg {
|
||||
border-radius: var(--border-radius);
|
||||
border-color: var(--color-secondary);
|
||||
object-fit: contain;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue