diff --git a/app.js b/app.js
index ccdd81a..6de57b5 100644
--- a/app.js
+++ b/app.js
@@ -18,7 +18,7 @@ function initializeExtension() {
}
// the button
- const newBtn = $('
')
+ const newBtn = $('
Kamino
')
// the modal
const popup = $('
Kamino - Confirm Clone
Are you sure you want to clone this issue to another repository? The original issue will be closed.
')
@@ -29,8 +29,8 @@ function initializeExtension() {
// if the page is not a pull request page and there is no Kamino button in the DOM, proceed
if (urlObj.url.indexOf('/pull/') < 0 && $('.kaminoButton').length === 0) {
// append button and modal to DOM
- $('.gh-header-meta').append(newBtn)
- $('.gh-header-meta').append(popup)
+ $(newBtn).insertAfter($('.sidebar-milestone'))
+ $(popup).insertAfter($('.sidebar-milestone'))
// remove the open class just to be sure
$('.btn-group').removeClass('open');
@@ -92,7 +92,7 @@ function loadRepos() {
// clear the list each time to avoid duplicates
$('.repoDropdown').empty()
- // move the items from most used to the top
+ // move the items from most used to the top
chrome.storage.sync.get({
mostUsed: []
}, (item) => {
diff --git a/css/style.css b/css/style.css
index 91e770a..f305a0d 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1,3 +1,8 @@
+.sidebar-kamino {
+ margin-top:15px;
+ border-top:1px solid #e6ebf1;
+}
+
.dropdown-menu>li>a {
display: block;
padding: 3px 20px;
@@ -55,7 +60,7 @@ a {
}
.quickClone {
- width: 150px !important;
+ width: 86%;
text-overflow: ellipsis;
overflow: hidden;
}