Add avatars to notes
This commit is contained in:
parent
69fd26b3bc
commit
2cd5c970f6
|
@ -398,7 +398,12 @@ namespace SparkleShare {
|
|||
change_set.Notes.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));
|
||||
|
||||
foreach (SparkleNote note in change_set.Notes) {
|
||||
comments += "<div class=\"comment-text\">" + note.Body + "<p class=\"comment-author\">" + note.UserName + "</p></div>";
|
||||
comments += "<div class=\"comment-text\">" +
|
||||
"<p class=\"comment-author\"" +
|
||||
" style=\"background-image: url('file://" + GetAvatar (note.UserEmail, 48) + "');\">" +
|
||||
note.UserName + "</p>" +
|
||||
note.Body +
|
||||
"</div>";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -97,8 +97,7 @@
|
|||
font-size: 90%;
|
||||
padding: 12px;
|
||||
background-color: #FFF4DB;
|
||||
margin-bottom: 1px;
|
||||
<!-- padding-right: 48px; -->
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.day-entry-header {
|
||||
|
@ -250,9 +249,14 @@
|
|||
.comment-author {
|
||||
font-size: 90%;
|
||||
font-weight: bold;
|
||||
width: 75%;
|
||||
margin: 0;
|
||||
margin-top: 12px;
|
||||
margin-bottom: 9px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom left;
|
||||
background-size: 24px;
|
||||
height: 24px;
|
||||
padding-left: 30px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.comment-timestamp {
|
||||
|
|
Loading…
Reference in a new issue