diff --git a/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.scss b/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.scss
index 3396a06cc..22f291331 100644
--- a/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.scss
+++ b/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.scss
@@ -1,6 +1,8 @@
@import "~styles/variables.scss";
.sidenav-container {
min-height: 100vh;
+ -webkit-overflow-scrolling:touch;
+ overflow:auto;
}
.sidenav {
diff --git a/src/Ombi/ClientApp/src/app/services/signlarnotification.service.ts b/src/Ombi/ClientApp/src/app/services/signlarnotification.service.ts
index 72a101c86..2597fff54 100644
--- a/src/Ombi/ClientApp/src/app/services/signlarnotification.service.ts
+++ b/src/Ombi/ClientApp/src/app/services/signlarnotification.service.ts
@@ -3,6 +3,7 @@ import { AuthService } from '../auth/auth.service';
import { HubConnection } from '@aspnet/signalr';
import * as signalR from '@aspnet/signalr';
+
@Injectable()
export class SignalRNotificationService {
@@ -28,12 +29,16 @@ export class SignalRNotificationService {
this.Notification.emit(data);
});
+ let retryCount = 0;
this.hubConnection.start().then((data: any) => {
console.log('Now connected');
}).catch((error: any) => {
+ retryCount++;
console.log('Could not connect ' + error);
- setTimeout(() => this.initialize(), 3000);
+ if (retryCount <= 3) {
+ setTimeout(() => this.initialize(), 3000);
+ }
});
}
diff --git a/src/Ombi/ClientApp/src/styles/shared.scss b/src/Ombi/ClientApp/src/styles/shared.scss
index f69e146f2..78f5de1c8 100644
--- a/src/Ombi/ClientApp/src/styles/shared.scss
+++ b/src/Ombi/ClientApp/src/styles/shared.scss
@@ -38,11 +38,19 @@
html,
body {
min-height: 100vh;
- overflow: auto;
+ overflow: hidden;
scrollbar-color: #616161 #303030; //firefox
scrollbar-width: thin; //firefox
+ -webkit-overflow-scrolling: touch;
+}
+#main-container {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ overflow: auto;
}
-
.spinner-container {
position: relative;
margin-left: 50%;