Browse Source

More progrss on making station page more responsive

Kristian Vos 3 years ago
parent
commit
44da59ea61
2 changed files with 14 additions and 27 deletions
  1. 0 10
      frontend/dist/index.css
  2. 14 17
      frontend/src/pages/Station/index.vue

+ 0 - 10
frontend/dist/index.css

@@ -241,13 +241,3 @@ a.nav-item.is-tab {
 strong {
 	color: inherit;
 }
-
-@media (max-width: 1200px) {
-	#stationPlayer {
-		position: absolute;
-		top: 0;
-		left: 0;
-		width: 100%;
-		height: 100%;
-	}
-}

+ 14 - 17
frontend/src/pages/Station/index.vue

@@ -1861,6 +1861,16 @@ export default {
 };
 </script>
 
+<style lang="scss">
+#stationPlayer {
+	position: absolute;
+	top: 0;
+	left: 0;
+	width: 100%;
+	height: 100%;
+}
+</style>
+
 <style lang="scss" scoped>
 // .main-container > div {
 // 	height: 100%;
@@ -1986,7 +1996,6 @@ export default {
 		.quadrant {
 			border-radius: 5px;
 			margin: 10px;
-			flex-grow: 1;
 		}
 
 		.quadrant:not(#sidebar-container) {
@@ -2081,12 +2090,10 @@ export default {
 			}
 
 			#video-container {
-				// position: relative;
-				// padding-bottom: 56.25%; /* proportion value to aspect ratio 16:9 (9 / 16 = 0.5625 or 56.25%) */
-				// height: 0;
-				// overflow: hidden;
-				width: 100%;
-				height: 100%;
+				position: relative;
+				padding-bottom: 56.25%; /* proportion value to aspect ratio 16:9 (9 / 16 = 0.5625 or 56.25%) */
+				height: 0;
+				overflow: hidden;
 
 				.player-cannot-autoplay {
 					position: relative;
@@ -2616,16 +2623,6 @@ export default {
 		#station-inner-container {
 			flex-direction: column-reverse;
 			flex-wrap: nowrap;
-
-			.player-container {
-				#video-container {
-					position: relative;
-					padding-bottom: 56.25%; /* proportion value to aspect ratio 16:9 (9 / 16 = 0.5625 or 56.25%) */
-					height: 0;
-					overflow: hidden;
-					width: unset;
-				}
-			}
 		}
 	}
 }