summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-06 08:24:50 +0000
committerPhil Hughes <me@iamphill.com>2018-04-06 08:24:50 +0000
commit2faf991f31aceb1c34a3855695d25fab19203e36 (patch)
tree50c22c2dd27e61567fcd2a359747743244055405
parenteeaf4aec2e30c3f34a9fd5acb51368820546cbe7 (diff)
parentec5dae98cf78c458e8d4f7ca71700a02715cb8c3 (diff)
downloadgitlab-ce-2faf991f31aceb1c34a3855695d25fab19203e36.tar.gz
Merge branch '43976-fix-access-token-clipboard-button-style' into 'master'
Resolve "Access token copy to clipboard button has wrong style" Closes #43976 See merge request gitlab-org/gitlab-ce!17978
-rw-r--r--app/assets/stylesheets/pages/profile.scss7
-rw-r--r--app/views/profiles/personal_access_tokens/index.html.haml6
-rw-r--r--changelogs/unreleased/43976-fix-access-token-clipboard-button-style.yml5
3 files changed, 10 insertions, 8 deletions
diff --git a/app/assets/stylesheets/pages/profile.scss b/app/assets/stylesheets/pages/profile.scss
index ac745019319..b199f9876d3 100644
--- a/app/assets/stylesheets/pages/profile.scss
+++ b/app/assets/stylesheets/pages/profile.scss
@@ -210,13 +210,8 @@
}
.created-personal-access-token-container {
- #created-personal-access-token {
- width: 90%;
- display: inline;
- }
-
.btn-clipboard {
- margin-left: 5px;
+ border: 1px solid $border-color;
}
}
diff --git a/app/views/profiles/personal_access_tokens/index.html.haml b/app/views/profiles/personal_access_tokens/index.html.haml
index 78848542810..b96251cd982 100644
--- a/app/views/profiles/personal_access_tokens/index.html.haml
+++ b/app/views/profiles/personal_access_tokens/index.html.haml
@@ -19,8 +19,10 @@
%h5.prepend-top-0
Your New Personal Access Token
.form-group
- = text_field_tag 'created-personal-access-token', @new_personal_access_token, readonly: true, class: "form-control js-select-on-focus", 'aria-describedby' => "created-personal-access-token-help-block"
- = clipboard_button(text: @new_personal_access_token, title: "Copy personal access token to clipboard", placement: "left")
+ .input-group
+ = text_field_tag 'created-personal-access-token', @new_personal_access_token, readonly: true, class: "form-control js-select-on-focus", 'aria-describedby' => "created-personal-access-token-help-block"
+ %span.input-group-btn
+ = clipboard_button(text: @new_personal_access_token, title: "Copy personal access token to clipboard", placement: "left", class: "btn-default btn-clipboard")
%span#created-personal-access-token-help-block.help-block.text-danger Make sure you save it - you won't be able to access it again.
%hr
diff --git a/changelogs/unreleased/43976-fix-access-token-clipboard-button-style.yml b/changelogs/unreleased/43976-fix-access-token-clipboard-button-style.yml
new file mode 100644
index 00000000000..b341d5dfa7f
--- /dev/null
+++ b/changelogs/unreleased/43976-fix-access-token-clipboard-button-style.yml
@@ -0,0 +1,5 @@
+---
+title: Fix personal access token clipboard button style
+merge_request: 17978
+author: Fabian Schneider
+type: fixed