diff --git a/package.json b/package.json
index ac1d8f6..7aee0a8 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,7 @@
"dependencies": {
"angular-tooltips": "^1.2.2",
"autoprefixer": "^8.6.4",
- "bootstrap": "^4.1.2",
+ "bootstrap": "^4.2.1",
"eslint": "^5.9.0",
"highlight.js": "^9.12.0",
"node-sass": "^4.11.0",
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index ce6a10c..4f4469d 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -407,6 +407,16 @@
$scope.site = $scope.data.sites.length - 1;
};
+ $scope.removeSite = function(site) {
+ $scope.data.sites.splice(site, 1);
+
+ if ($scope.data.sites[$scope.site] === undefined) {
+ $scope.site--;
+ }
+
+ $timeout(calculateChanges);
+ };
+
$scope.setSite = function(site) {
$scope.site = site;
$timeout(calculateChanges);
diff --git a/public/index.html b/public/index.html
index c425319..b57b3f8 100644
--- a/public/index.html
+++ b/public/index.html
@@ -106,7 +106,12 @@
Sites:
- {{ getDomain(key) }}({{ getSiteChanges(key) !== undefined ? getSiteChanges(key) : '?' }})
+
+ {{ getDomain(key) }}({{ getSiteChanges(key) !== undefined ? getSiteChanges(key) : '?' }})
+
+
﹢ Add site
diff --git a/resources/scss/_main.scss b/resources/scss/_main.scss
index cc59343..7a2b0a8 100644
--- a/resources/scss/_main.scss
+++ b/resources/scss/_main.scss
@@ -97,7 +97,7 @@ section.tabs {
@include media-breakpoint-up(xl) {
padding-left: 0;
- padding-right: 0;
+ padding-right: 0.75rem;
text-align: center;
}
@@ -121,10 +121,6 @@ section.tabs {
&.changed {
font-weight: 700;
- @include media-breakpoint-up(xl) {
- padding-right: 1rem;
- }
-
small {
display: inline;
@@ -145,6 +141,10 @@ section.tabs {
right: 0.25rem;
}
}
+
+ button.close {
+ line-height: 0.8;
+ }
}
}
}
diff --git a/resources/scss/vendor/_bootstrap.scss b/resources/scss/vendor/_bootstrap.scss
index b78a9c9..2e0797c 100644
--- a/resources/scss/vendor/_bootstrap.scss
+++ b/resources/scss/vendor/_bootstrap.scss
@@ -26,7 +26,7 @@
// @import '../../../node_modules/bootstrap/scss/progress';
// @import '../../../node_modules/bootstrap/scss/media';
// @import '../../../node_modules/bootstrap/scss/list-group';
-// @import '../../../node_modules/bootstrap/scss/close';
+@import '../../../node_modules/bootstrap/scss/close';
// @import '../../../node_modules/bootstrap/scss/modal';
// @import '../../../node_modules/bootstrap/scss/tooltip';
// @import '../../../node_modules/bootstrap/scss/popover';