mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-72806 block_online_users: align picture/name of listed users.
Ensure alignment is consistent regardless of whether showing user picture or auto-generated one based on their initials.
This commit is contained in:
parent
385938b472
commit
acf6ed6fe1
@ -135,7 +135,12 @@ class block_online_users extends block_base {
|
||||
} else { // Not a guest user.
|
||||
$this->content->text .= '<div class="user">';
|
||||
$this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&course='.$this->page->course->id.'" title="'.$timeago.'">';
|
||||
$avataroptions = ['size' => 16, 'visibletoscreenreaders' => false, 'link' => false];
|
||||
$avataroptions = [
|
||||
'size' => 30,
|
||||
'class' => 'userpicture align-middle',
|
||||
'visibletoscreenreaders' => false,
|
||||
'link' => false,
|
||||
];
|
||||
$this->content->text .= $OUTPUT->user_picture($user, $avataroptions) . $user->fullname . '</a></div>';
|
||||
|
||||
if ($USER->id == $user->id) {
|
||||
|
@ -2,6 +2,10 @@
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.block_online_users .content .list li.listentry:not(:first-child) {
|
||||
padding-top: 3px;
|
||||
}
|
||||
|
||||
.block_online_users .content .list li.listentry .user {
|
||||
float: left;
|
||||
position: relative;
|
||||
|
@ -1117,7 +1117,8 @@ div#dock {
|
||||
border-radius: 50%;
|
||||
color: $gray-800;
|
||||
font-weight: normal;
|
||||
&.size-16 {
|
||||
&.size-16,
|
||||
&.size-30 {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
@ -18063,7 +18063,7 @@ div#dock {
|
||||
border-radius: 50%;
|
||||
color: #343a40;
|
||||
font-weight: normal; }
|
||||
.userinitials.size-16 {
|
||||
.userinitials.size-16, .userinitials.size-30 {
|
||||
width: 30px;
|
||||
height: 30px; }
|
||||
.userinitials.size-35 {
|
||||
|
@ -18063,7 +18063,7 @@ div#dock {
|
||||
border-radius: 50%;
|
||||
color: #343a40;
|
||||
font-weight: normal; }
|
||||
.userinitials.size-16 {
|
||||
.userinitials.size-16, .userinitials.size-30 {
|
||||
width: 30px;
|
||||
height: 30px; }
|
||||
.userinitials.size-35 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user