mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 07:17:32 +00:00
Fix left-aligned avatars being collapsed to the next line if username/reason is too long
If there is a better way to fix this besides "display: flex" I'll consider it.
This commit is contained in:
parent
a7de659113
commit
1437d0155a
@ -4,6 +4,13 @@
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.avatar-name {
|
||||
}
|
||||
|
||||
.avatar-name-left {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* header */
|
||||
.litebans-header {
|
||||
display: block;
|
||||
|
@ -227,10 +227,10 @@ class Page {
|
||||
$str = "{$img}$name";
|
||||
if ($name_under) {
|
||||
$str = "{$img}<br class='noselect'>$name";
|
||||
return "<div align='center'>$str</div>";
|
||||
return "<div class='avatar-name' align='center'>$str</div>";
|
||||
}
|
||||
if ($name_left) {
|
||||
return "<div align='left'>$str</div>";
|
||||
return "<div class='avatar-name-left' align='left'>$str</div>";
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user