-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): fix avatar border and split component
feature/avatar-separation
- Loading branch information
Gabriel Santos
committed
Sep 16, 2019
1 parent
4ce8a82
commit 0085614
Showing
6 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import './Avatar.scss'; | ||
import template from './AvatarView.html'; | ||
import angular from 'core/angular'; | ||
|
||
export const AvatarComponent = angular | ||
.module('blipComponents.avatar', []) | ||
.component('avatar', { | ||
controllerAs: '$ctrl', | ||
bindings: { | ||
user: '<?' | ||
}, | ||
template, | ||
}) | ||
.name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<span class="avatar"> | ||
<span tooltips tooltip-template="{{$ctrl.$ctrl.user.tooltipName}}" tooltip-side="bottom" tooltip-class="small"> | ||
<img ng-if="$ctrl.user.photoUri" ng-src="{{$ctrl.user.photoUri}}" alt="{{$ctrl.user.fullName}}"> | ||
<letter-avatar ng-if="!$ctrl.user.photoUri" class="account-editing-avatar ml4" text="$ctrl.user.fullName"></letter-avatar> | ||
</span> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
<div class="avatar-array"> | ||
<span tooltips tooltip-template="{{member.tooltipName}}" tooltip-side="bottom" tooltip-class="small" ng-repeat="member in $ctrl.members"> | ||
<img ng-if="member.photoUri" ng-src="{{member.photoUri}}" alt="{{member.fullName}}"> | ||
<letter-avatar ng-if="!member.photoUri" class="account-editing-avatar ml4" text="member.fullName"></letter-avatar> | ||
</span> | ||
<avatar user="member" ng-repeat="member in $ctrl.members"></avatar> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters