Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/modules/ui/directives/avatar/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
this.style = { width: `${this.size}px`, height: `${this.size}px` };

this.receive(user.changeScript, () => {
this.hasScript = user.hasScript();
$scope.$apply();
this.$onChanges();
});
}

Expand Down
18 changes: 18 additions & 0 deletions src/modules/ui/directives/avatar/less/avatar-active.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@import (reference) 'icons';
@import (reference) 'config';

.avatar_active {
.avatar {
&__img {
transform: scale(1.25);
box-shadow: 0 0 0 4px #fff, 0 4px 18px 0 rgba(30, 41, 73, 0.15);
}
}

&.avatar {
.avatar__wrap {
cursor: default;
opacity: 1;
}
}
}
33 changes: 0 additions & 33 deletions src/modules/ui/directives/avatar/less/avatar.active.less

This file was deleted.

13 changes: 0 additions & 13 deletions src/modules/ui/directives/avatar/less/avatar.less
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@
}
}

&[type='ledger'] .avatar__wrap:not(.scripted)::after {
bottom: 8px;
left: calc(100% ~'- 23px');
transition: left 0.3s, bottom 0.3s;
}

&__wrapper { // .avatar__wrapper
display: flex;
align-items: center;
Expand All @@ -81,11 +75,4 @@
opacity: 1;
}
}
}

@media screen and (max-width: 480px) {
.avatar[type='ledger'] .avatar__wrap:not(.scripted)::after {
bottom: 13px;
left: calc(100% ~'- 28px');
}
}
37 changes: 37 additions & 0 deletions src/modules/ui/directives/avatar/less/avatars-list.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@import (reference) 'icons';
@import (reference) 'config';

.avatars-list {
.avatar[type='ledger'] {
.avatar__wrap:not(.scripted)::after {
bottom: 8px;
left: calc(100% ~'- 23px');
transition: left 0.3s, bottom 0.3s;
}

&.avatar_active {
.avatar__wrap:not(.scripted)::after {
bottom: 3px;
left: calc(100% ~'- 18px');
}
}
}
}

@media screen and (max-width: 480px) {
.avatars-list {
.avatar[type='ledger'] {
.avatar__wrap:not(.scripted)::after {
bottom: 13px;
left: calc(100% ~'- 28px');
}

&.avatar_active {
.avatar__wrap:not(.scripted)::after {
bottom: 8px;
left: calc(100% ~'- 23px');
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

<div class="mobile-menu__user">
<div class="mobile-menu__avatar has-helper"> <!-- MOBILE -->
<w-avatar size="40" address="$ctrl.address"></w-avatar>
<w-avatar type="{{$ctrl.userType}}" size="40" address="$ctrl.address"></w-avatar>
</div>

<div class="mobile-menu__info mobile-user">
Expand Down