From 972719ae828e36f3444d0cfb407c79816aaeeb47 Mon Sep 17 00:00:00 2001 From: jim Date: Mon, 12 Feb 2018 11:12:56 +0800 Subject: [PATCH] optimize phoneview style --- src/routes/Userinfo/PhoneView.less | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/routes/Userinfo/PhoneView.less b/src/routes/Userinfo/PhoneView.less index bc1e3a43..6fdf84df 100644 --- a/src/routes/Userinfo/PhoneView.less +++ b/src/routes/Userinfo/PhoneView.less @@ -1,20 +1,11 @@ @import '~antd/lib/style/themes/default.less'; .area_code { - width: 128px; + max-width: 128px; margin-right: 8px; + width: 30%; } .phone_number { - width: 312px; -} - -@media screen and (max-width: @screen-sm) { - .area_code { - width: 100%; - margin: 0; - margin-bottom: 8px; - } - .phone_number { - width: 100%; - } + max-width: 312px; + width: ~'calc( 70% - 8px)'; } -- GitLab