Explorar o código

图表适配超小屏幕情况

jwyu hai 1 ano
pai
achega
e8d7e806b9
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      src/views/chartShow/index.less

+ 12 - 0
src/views/chartShow/index.less

@@ -142,4 +142,16 @@
 		.chart-show .notfound {
 			font-size: 14px;
 		}
+	}
+	// 小屏幕
+	@media (max-width: 300px){
+		.chart-show{
+			display: flex;
+			flex-direction: column;
+			.chart-wrapper{
+				flex: 1;
+				height: auto;
+				max-height: none;
+			}
+		}
 	}