MDL-73632 core_comment: useravatar styles new comments

This commit is contained in:
Bas Brands 2022-01-27 11:19:53 +01:00
parent 4f9a539600
commit 6f3a7998af
5 changed files with 10 additions and 7 deletions

View File

@ -587,7 +587,7 @@ class comment {
$c->fullname = fullname($u);
$c->time = userdate($c->timecreated, $c->strftimeformat);
$c->content = format_text($c->content, $c->format, $formatoptions);
$c->avatar = $OUTPUT->user_picture($u, array('size'=>18));
$c->avatar = $OUTPUT->user_picture($u, array('size' => 16));
$c->userid = $u->id;
if ($this->can_delete($c)) {
@ -928,7 +928,7 @@ class comment {
$strdelete = get_string('deletecommentbyon', 'moodle', (object)['user' => $cmt->fullname, 'time' => $cmt->time]);
$deletelink = html_writer::start_tag('div', array('class'=>'comment-delete'));
$deletelink .= html_writer::start_tag('a', array('href' => '#', 'id' => 'comment-delete-'.$this->cid.'-'.$cmt->id,
'title' => $strdelete));
'class' => 'icon-no-margin', 'title' => $strdelete));
$deletelink .= $OUTPUT->pix_icon('t/delete', get_string('delete'));
$deletelink .= html_writer::end_tag('a');

View File

@ -657,8 +657,8 @@ table.mod_index {
}
.comment-message .picture {
width: 20px;
float: left;
margin-right: 0.25rem;
}
.comment-message .text {

View File

@ -1172,6 +1172,7 @@ div#dock {
font-weight: normal;
&.size-16,
&.size-30 {
font-size: 0.7rem;
width: 30px;
height: 30px;
}

View File

@ -10416,8 +10416,8 @@ table.mod_index {
border: 1px solid #ccc; }
.comment-message .picture {
width: 20px;
float: left; }
float: left;
margin-right: 0.25rem; }
.comment-message .text {
margin: 0;
@ -18471,6 +18471,7 @@ div#dock {
color: #343a40;
font-weight: normal; }
.userinitials.size-16, .userinitials.size-30 {
font-size: 0.7rem;
width: 30px;
height: 30px; }
.userinitials.size-35 {

View File

@ -10416,8 +10416,8 @@ table.mod_index {
border: 1px solid #ccc; }
.comment-message .picture {
width: 20px;
float: left; }
float: left;
margin-right: 0.25rem; }
.comment-message .text {
margin: 0;
@ -18471,6 +18471,7 @@ div#dock {
color: #343a40;
font-weight: normal; }
.userinitials.size-16, .userinitials.size-30 {
font-size: 0.7rem;
width: 30px;
height: 30px; }
.userinitials.size-35 {