diff --git a/src/app/main/main.component.css b/src/app/main/main.component.css
index 8411370..e2325f2 100644
--- a/src/app/main/main.component.css
+++ b/src/app/main/main.component.css
@@ -133,12 +133,16 @@ mat-form-field.mat-form-field {
top: -5px;
}
+.border-radius-both {
+ border-radius: 16px;
+}
+
.no-border-radius-bottom {
- border-radius: 4px 4px 0px 0px;
+ border-radius: 16px 16px 0px 0px;
}
.no-border-radius-top {
- border-radius: 0px 0px 4px 4px;
+ border-radius: 0px 0px 16px 16px;
}
@media (max-width: 576px) {
diff --git a/src/app/main/main.component.html b/src/app/main/main.component.html
index 80fb3c2..b81e866 100644
--- a/src/app/main/main.component.html
+++ b/src/app/main/main.component.html
@@ -1,6 +1,6 @@
-
+
-
+
@@ -401,8 +400,7 @@
-
-
+
Allow user registration
@@ -446,25 +444,23 @@
-
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
diff --git a/src/app/settings/settings.component.scss b/src/app/settings/settings.component.scss
index 59c58af..f702e64 100644
--- a/src/app/settings/settings.component.scss
+++ b/src/app/settings/settings.component.scss
@@ -2,6 +2,15 @@
margin-bottom: 20px;
}
+.settings-title {
+ text-align: center;
+ margin-top: 15px;
+}
+
+::ng-deep .mat-tab-body {
+ margin-left: 15px;
+}
+
.ext-divider {
margin-bottom: 14px;
}
@@ -90,4 +99,9 @@
.transfer-db-div {
margin-bottom: 10px;
+}
+
+.action-buttons {
+ position: absolute;
+ bottom: 15px;
}
\ No newline at end of file
diff --git a/src/app/settings/settings.component.ts b/src/app/settings/settings.component.ts
index d2d43e9..483c4db 100644
--- a/src/app/settings/settings.component.ts
+++ b/src/app/settings/settings.component.ts
@@ -51,8 +51,17 @@ export class SettingsComponent implements OnInit {
private dialog: MatDialog) { }
ngOnInit() {
- this.getConfig();
- this.getDBInfo();
+ if (this.postsService.initialized) {
+ this.getConfig();
+ this.getDBInfo();
+ } else {
+ this.postsService.service_initialized.subscribe(init => {
+ if (init) {
+ this.getConfig();
+ this.getDBInfo();
+ }
+ });
+ }
this.generated_bookmarklet_code = this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode());
@@ -85,6 +94,10 @@ export class SettingsComponent implements OnInit {
})
}
+ cancelSettings() {
+ this.new_config = JSON.parse(JSON.stringify(this.initial_config));
+ }
+
dropCategory(event: CdkDragDrop
) {
moveItemInArray(this.postsService.categories, event.previousIndex, event.currentIndex);
this.postsService.updateCategories(this.postsService.categories).subscribe(res => {
diff --git a/src/styles.scss b/src/styles.scss
index 41ef9ea..be060c8 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -42,6 +42,10 @@ $dark-theme: mat-dark-theme($dark-primary, $dark-accent, $dark-warn);
@include angular-material-theme($dark-theme);
}
+.mat-stroked-button, .mat-raised-button, .mat-flat-button {
+ border-radius: 24px !important
+}
+
// Light theme
$light-primary: mat-palette($mat-grey, 200, 500, 300);
$light-accent: mat-palette($mat-brown, 200);
@@ -50,7 +54,7 @@ $light-warn: mat-palette($mat-deep-orange, 200);
$light-theme: mat-light-theme($light-primary, $light-accent, $light-warn);
.light-theme {
- @include angular-material-theme($light-theme)
+ @include angular-material-theme($light-theme);
}
.no-outline {