From cf1dc3bd256d83ac4c49622b1c0d44f3d0cfa0db Mon Sep 17 00:00:00 2001 From: Juanfran Date: Thu, 10 Jul 2014 13:19:01 +0200 Subject: [PATCH] fix #316 --- app/coffee/modules/issues/detail.coffee | 4 ++++ app/styles/modules/comments.scss | 15 ++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/coffee/modules/issues/detail.coffee b/app/coffee/modules/issues/detail.coffee index 6dffc927..09a6f1cf 100644 --- a/app/coffee/modules/issues/detail.coffee +++ b/app/coffee/modules/issues/detail.coffee @@ -161,6 +161,10 @@ IssueDirective = ($tgrepo, $log, $location, $confirm) -> $tgrepo.save($scope.issue).then -> $ctrl.loadHistory() + $el.on "focus", ".add-comment textarea", (event) -> + $(this).addClass('active') + + $el.on "click", ".us-activity-tabs li a", (event) -> $el.find(".us-activity-tabs li a").toggleClass("active") $el.find(".us-activity section").toggleClass("hidden") diff --git a/app/styles/modules/comments.scss b/app/styles/modules/comments.scss index 99cd1688..46b6d5e0 100644 --- a/app/styles/modules/comments.scss +++ b/app/styles/modules/comments.scss @@ -1,18 +1,15 @@ .add-comment { @include clearfix; textarea { - @include transition(height .3s ease-in); - // &:focus { - // @include transition(height .3s ease-in); - // height: 6rem; - // +a { - // display: inline-block; - // } - // } + float: left; + margin-bottom: .5rem; + &.active { + @include transition(height .3s ease-in); + height: 6rem; + } } a { color: $white; - // display: none; display: inline-block; float: right; }