From db40d766904994a8b2db24892fbadc11e138333b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Feb 2017 16:32:38 +0900 Subject: [PATCH] [Client] Update design --- src/web/app/desktop/tags/user-preview.tag | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/web/app/desktop/tags/user-preview.tag b/src/web/app/desktop/tags/user-preview.tag index be5501ede..4285f15ef 100644 --- a/src/web/app/desktop/tags/user-preview.tag +++ b/src/web/app/desktop/tags/user-preview.tag @@ -24,12 +24,14 @@ display block position absolute z-index 2048 + margin-top -8px width 250px background #fff background-clip content-box border solid 1px rgba(0, 0, 0, 0.1) border-radius 4px overflow hidden + opacity 0 > .banner height 84px @@ -117,12 +119,11 @@ this.update({ user: user }); + this.open(); }); + }); - Velocity(this.root, { - opacity: 0, - 'margin-top': '-8px' - }, 0); + this.open = () => { Velocity(this.root, { opacity: 1, 'margin-top': 0 @@ -130,7 +131,7 @@ duration: 200, easing: 'ease-out' }); - }); + }; this.close = () => { Velocity(this.root, {