From 1bd90711e14c44ead5697d78663b87aaae207991 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Tue, 7 Nov 2017 16:59:55 +0800 Subject: [PATCH] fixed monitor map image overflow width when screen is large --- src/routes/Dashboard/Monitor.less | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/Dashboard/Monitor.less b/src/routes/Dashboard/Monitor.less index 4acca07d..e52dd30c 100644 --- a/src/routes/Dashboard/Monitor.less +++ b/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; } } -- GitLab