mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Use <div> instead of <p> for avatars
This commit is contained in:
parent
0d36e13bd3
commit
eaee415b66
@ -18,6 +18,7 @@
|
||||
.navbar {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-weight: normal;
|
||||
}
|
||||
@ -116,7 +117,6 @@ tr.hover {
|
||||
}
|
||||
|
||||
.litebans-label-container {
|
||||
width: 0;
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
@ -183,3 +183,12 @@ tr.hover {
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* prevent alignment */
|
||||
.noalign-w {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.noalign-h {
|
||||
height: 0;
|
||||
}
|
||||
|
@ -227,10 +227,10 @@ class Page {
|
||||
$str = "{$img}$name";
|
||||
if ($name_under) {
|
||||
$str = "{$img}<br class='noselect'>$name";
|
||||
return "<p align='center'>$str</p>";
|
||||
return "<div align='center'>$str</div>";
|
||||
}
|
||||
if ($name_left) {
|
||||
return "<p align='left'>$str</p>";
|
||||
return "<div align='left'>$str</div>";
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
2
info.php
2
info.php
@ -180,7 +180,7 @@ if ($st->execute(array($id))) {
|
||||
}
|
||||
}
|
||||
}
|
||||
$page->print_header(true, $header . "<div class=\"litebans-label-container\">$badges</div>");
|
||||
$page->print_header(true, $header . "<div class=\"noalign-w litebans-label-container\">$badges</div>");
|
||||
|
||||
$map = $info->basic_info($row, $player_name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user