Browse Source

Merge pull request #31 from theurere/theurere-css-to-scss-branch

Undo buddy.html css class rename
pull/32/head
Simon Eisenmann 11 years ago
parent
commit
7a6ae6e621
  1. 8
      src/styles/components/_buddylist.scss
  2. 4
      src/styles/components/_chat.scss
  3. 2
      static/js/controllers/chatroomcontroller.js
  4. 8
      static/partials/buddy.html

8
src/styles/components/_buddylist.scss

@ -126,13 +126,13 @@ @@ -126,13 +126,13 @@
}
.buddy {
&.withSubline .display-name {
&.withSubline .buddy1 {
top: 15px;
}
&.hovered .buddyactions {
right: 0;
}
.avatar {
.buddyPicture {
background: $actioncolor1;
border-radius: 2px;
float: left;
@ -155,7 +155,7 @@ @@ -155,7 +155,7 @@
top: 0;
}
}
.display-name {
.buddy1 {
color: $componentfg1;
font-weight: bold;
font-size: 14px;
@ -168,7 +168,7 @@ @@ -168,7 +168,7 @@
top: 24px;
white-space: nowrap;
}
.browser {
.buddy2 {
color: $componentfg2;
left: 65px;
overflow: hidden;

4
src/styles/components/_chat.scss

@ -341,11 +341,11 @@ @@ -341,11 +341,11 @@
}
.chat .message {
&.is_self .avatar {
&.is_self .buddyPicture {
left: auto;
right: 4px;
}
.avatar {
.buddyPicture {
background: $actioncolor1;
border-radius: 2px;
height: 46px;

2
static/js/controllers/chatroomcontroller.js

@ -299,7 +299,7 @@ define(['underscore', 'moment', 'text!partials/fileinfo.html'], function(_, mome @@ -299,7 +299,7 @@ define(['underscore', 'moment', 'text!partials/fileinfo.html'], function(_, mome
title.html(displayName(from, true));
extra_css += "with_name ";
var imgSrc = buddyImageSrc(from);
picture = $('<div class="avatar"><i class="fa fa-user fa-3x"/><img/></div>');
picture = $('<div class="buddyPicture"><i class="fa fa-user fa-3x"/><img/></div>');
if (imgSrc) {
picture.find("img").attr("src", imgSrc);
}

8
static/partials/buddy.html

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<div class="buddy withSubline">
<div class="avatar"><i class="fa fa-user fa-3x"/><img ng-show="status.buddyPicture" alt ng-src="{{status.buddyPicture}}" width="46" height="46"/></div>
<div class="display-name">{{session.Id|displayName}}</div>
<div class="browser"><i ng-show="session.Userid" class="fa fa-star-o"></i> {{session.Ua}}</div>
</div>
<div class="buddyPicture"><i class="fa fa-user fa-3x"/><img ng-show="status.buddyPicture" alt ng-src="{{status.buddyPicture}}" width="46" height="46"/></div>
<div class="buddy1">{{session.Id|displayName}}</div>
<div class="buddy2"><i ng-show="session.Userid" class="fa fa-star-o"></i> {{session.Ua}}</div>
</div>

Loading…
Cancel
Save