Просмотр исходного кода

fixed monitor map image overflow width when screen is large

nikogu 8 лет назад
Родитель
Сommit
1bd90711e1
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/routes/Dashboard/Monitor.less

+ 4 - 2
src/routes/Dashboard/Monitor.less

@@ -4,9 +4,11 @@
 .mapChart {
   padding-top: 24px;
   height: 457px;
+  text-align: center;
   img {
-    width: 100%;
-    max-height: 457px;
+    display: inline-block;
+    max-width: 100%;
+    max-height: 437px;
   }
 }