Browse Source

Fixed styling issues, fixed issues with cookies in IE.

KrisVos130 8 years ago
parent
commit
9dfbe0396e
2 changed files with 12 additions and 5 deletions
  1. 9 1
      frontend/App.vue
  2. 3 4
      frontend/components/pages/Home.vue

+ 9 - 1
frontend/App.vue

@@ -113,7 +113,11 @@
 							let date = new Date();
 							date.setTime(new Date().getTime() + (2 * 365 * 24 * 60 * 60 * 1000));
 							let secure = (cookie.secure) ? 'secure=true; ' : '';
-							document.cookie = `SID=${result.SID}; expires=${date.toGMTString()}; domain=${cookie.domain}; ${secure}path=/`;
+							let domain = '';
+							if (cookie.domain !== 'localhost') {
+								domain = ` domain=${cookie.domain};`;
+							}
+							document.cookie = `SID=${result.SID}; expires=${date.toGMTString()}; ${domain}${secure}path=/`;
 							Toast.methods.addToast(`You have been successfully logged in`, 2000);
 							_this.$router.go('/');
 							location.reload();
@@ -146,6 +150,10 @@
 		overflow: auto !important;
 	}
 
+	.modal-card {
+		margin: 0 !important;
+	}
+
 	.absolute-a {
 		width: 100%;
 		height: 100%;

+ 3 - 4
frontend/components/pages/Home.vue

@@ -185,15 +185,14 @@
 		html { font-size: 14px; }
 	}
 
-	.card-content {
-		max-height: 159px;
-	}
-
 	.group { min-height: 64px; }
 
 	.station-card {
 		margin: 10px;
 		cursor: pointer;
+		.card-content {
+			max-height: 159px;
+		}
 	}
 
 	.community-button {