From 77342e57908298833aeb509000e63c3ef61c8925 Mon Sep 17 00:00:00 2001 From: Josh Holland Date: Tue, 19 Jan 2016 20:56:06 +0000 Subject: [PATCH] Fix 'add task' button jumping around --- website/public/css/tasks.styl | 5 ----- website/views/shared/tasks/task_view/add_new.jade | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/website/public/css/tasks.styl b/website/public/css/tasks.styl index 4573b36c4d..5c00cff41a 100644 --- a/website/public/css/tasks.styl +++ b/website/public/css/tasks.styl @@ -193,11 +193,6 @@ for $stage in $stages border: 0 float: right font-size: 0.85em - .empty-task-notification - // @TODO: This causes weird centering behavior (see #6332) - // however, this is required to show the tooltip on the task button - // Figure out how to fix the centering behavior while preserving the tooltip - height: 100%; // message in Dailies column when Resting in Inn // ------------------------ diff --git a/website/views/shared/tasks/task_view/add_new.jade b/website/views/shared/tasks/task_view/add_new.jade index c3b06c886c..f9baf76499 100644 --- a/website/views/shared/tasks/task_view/add_new.jade +++ b/website/views/shared/tasks/task_view/add_new.jade @@ -2,9 +2,9 @@ form.task-add(name='new{{list.type}}form', ng-hide='obj._locked', ng-submit='add textarea(rows='6', focus-element='list.bulk && list.focus', ng-model='list.newTask', placeholder='{{list.placeHolderBulk}}', ng-if='list.bulk', ui-keydown='{"meta-enter ctrl-enter":"addTask(obj[list.type+\'s\'],list)"}', required) input(type='text', focus-element='!list.bulk && list.focus', ng-model='list.newTask', placeholder='{{list.placeHolder}}', ng-if='!list.bulk', required) button(type='submit', ng-disabled='new{{list.type}}form.$invalid') - div.empty-task-notification( ng-show='new{{list.type}}form.$invalid', tooltip=env.t("emptyTask") ) - span.glyphicon.glyphicon-plus - span.glyphicon.glyphicon-plus(ng-show='!new{{list.type}}form.$invalid') + div(ng-show='new{{list.type}}form.$invalid', tooltip=env.t("emptyTask")) + span.glyphicon.glyphicon-plus + span.glyphicon.glyphicon-plus(ng-show='!new{{list.type}}form.$invalid') small.help-block.btn-link.pull-right(ng-click='toggleBulk(list)') span(ng-if='!list.bulk')=env.t('addmultiple') span(ng-if='list.bulk')=env.t('addsingle')