diff options
author | Simon Knox <simon@gitlab.com> | 2017-03-02 21:10:39 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-02 21:10:39 +0000 |
commit | ea0520924fa4e9a00930bc2553f894725d90b0ee (patch) | |
tree | d8393febf9538cc22487d01ac704da451933a226 /app/assets | |
parent | f0dc00d4c5ef474d19bbeea1a46e9604e129dcc3 (diff) | |
download | gitlab-ce-ea0520924fa4e9a00930bc2553f894725d90b0ee.tar.gz |
remove extra whitespace on dashboard projects page
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/user_callout.js | 4 | ||||
-rw-r--r-- | app/assets/stylesheets/pages/profile.scss | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/user_callout.js b/app/assets/javascripts/user_callout.js index 74b869502a4..99419e85b20 100644 --- a/app/assets/javascripts/user_callout.js +++ b/app/assets/javascripts/user_callout.js @@ -43,6 +43,8 @@ class UserCallout { this.userCalloutBody.append($template); $template.find(closeButton).on('click', e => this.dismissCallout(e)); $template.find(userCalloutBtn).on('click', e => this.dismissCallout(e)); + } else { + this.userCalloutBody.remove(); } } @@ -50,7 +52,7 @@ class UserCallout { Cookies.set(USER_CALLOUT_COOKIE, 'true'); const $currentTarget = $(e.currentTarget); if ($currentTarget.hasClass('close-user-callout')) { - this.userCalloutBody.empty(); + this.userCalloutBody.remove(); } } } diff --git a/app/assets/stylesheets/pages/profile.scss b/app/assets/stylesheets/pages/profile.scss index aad1a8986b0..1a983d8c9ef 100644 --- a/app/assets/stylesheets/pages/profile.scss +++ b/app/assets/stylesheets/pages/profile.scss @@ -279,7 +279,7 @@ table.u2f-registrations { } .user-callout { - margin: 24px auto 0; + margin: 0 auto; .bordered-box { border: 1px solid $border-color; @@ -287,6 +287,7 @@ table.u2f-registrations { } .landing { + margin-top: $gl-padding; margin-bottom: $gl-padding; .close { |