瀏覽代碼

fix(Station page): better height adjustment of page, mobile spacing/border-radius improvements

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 年之前
父節點
當前提交
a5e4609867

+ 4 - 0
frontend/src/components/layout/MainFooter.vue

@@ -79,6 +79,10 @@ export default {
 	width: 100%;
 	height: 160px;
 
+	@media (max-width: 650px) {
+		border-radius: 0;
+	}
+
 	#footer-logo {
 		display: block;
 		margin-left: auto;

+ 4 - 0
frontend/src/components/layout/MainHeader.vue

@@ -130,6 +130,10 @@ export default {
 	overflow: hidden;
 	border-radius: 0% 0% 33% 33% / 0% 0% 7% 7%;
 
+	@media (max-width: 650px) {
+		border-radius: 0;
+	}
+
 	.nav-menu.is-active {
 		.nav-item {
 			color: $dark-grey-2;

+ 29 - 21
frontend/src/pages/Station/index.vue

@@ -1448,11 +1448,6 @@ export default {
 
 <style lang="scss" scoped>
 @import "../../styles/global.scss";
-
-.main-container {
-	min-height: calc(100vh + 100px);
-}
-
 .progress {
 	width: 50px;
 	animation: rotate 0.8s infinite linear;
@@ -1544,24 +1539,31 @@ export default {
 			background: transparent !important;
 		}
 
-		/** padding fixes on mobile */
-		#about-station-container,
-		#currently-playing-container {
-			padding: 15px 10px !important;
+		#sidebar-container {
+			margin-left: 0 !important;
+			margin-top: 15px;
 		}
 
-		#about-station-container:not(.nothing-here) {
-			padding-bottom: 0 !important;
-		}
+		#upper-row {
+			background-color: #fff;
 
-		#currently-playing {
-			padding: 0;
-		}
+			/** padding fixes on mobile */
+			#about-station-container {
+				padding: 15px 10px !important;
 
-		/** no column gap between quadrants on mobile  */
-		#currently-playing-container,
-		#sidebar-container {
-			margin-left: 0 !important;
+				&:not(.nothing-here) {
+					padding-bottom: 0 !important;
+				}
+			}
+
+			#currently-playing-container {
+				margin-left: 0 !important;
+				padding: 15px 10px !important;
+
+				#currently-playing {
+					padding: 0;
+				}
+			}
 		}
 
 		#lower-row {
@@ -1570,7 +1572,7 @@ export default {
 
 		/** Change height of YouTube embed  */
 		.player-container:not(.nothing-here) {
-			height: 800px !important;
+			height: 1000px !important;
 		}
 
 		.player-container {
@@ -1678,7 +1680,8 @@ export default {
 
 		#lower-row {
 			margin-top: 20px;
-			height: calc(100% - 75px); // accounts for footer
+			// height: calc(100% - 75px); // accounts for footer
+			height: 60vh;
 
 			.player-container.nothing-here {
 				border: 1px solid $light-grey-2;
@@ -1893,6 +1896,7 @@ export default {
 
 						#ratings {
 							display: flex;
+							margin-right: 5px;
 
 							#like-song:hover,
 							#like-song.liked {
@@ -1941,6 +1945,10 @@ export default {
 	}
 }
 
+.footer {
+	margin-top: 15px;
+}
+
 /deep/ .nothing-here {
 	display: flex;
 	align-items: center;