From 34b4c45792916379226c1c3b71bb5ff96740e577 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 18 Aug 2019 00:26:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E4=B8=8E=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=E6=97=B6=E5=90=8C=E6=AD=A5=E5=88=B0?= =?UTF-8?q?header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Views/Shared/Navigator.cshtml | 2 +- Bootstrap.Admin/wwwroot/css/lte.css | 4 +++- Bootstrap.Admin/wwwroot/js/profiles.js | 2 +- Bootstrap.Admin/wwwroot/js/users.js | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Bootstrap.Admin/Views/Shared/Navigator.cshtml b/Bootstrap.Admin/Views/Shared/Navigator.cshtml index 0706151a..03535489 100644 --- a/Bootstrap.Admin/Views/Shared/Navigator.cshtml +++ b/Bootstrap.Admin/Views/Shared/Navigator.cshtml @@ -10,7 +10,7 @@ diff --git a/Bootstrap.Admin/wwwroot/css/lte.css b/Bootstrap.Admin/wwwroot/css/lte.css index 73f82b5a..2a8cb5ef 100644 --- a/Bootstrap.Admin/wwwroot/css/lte.css +++ b/Bootstrap.Admin/wwwroot/css/lte.css @@ -136,8 +136,10 @@ aside { left: 4px; } - aside .nav-header span { + aside .nav-header .username { font-size: 1rem; + max-width: 120px; + vertical-align: middle; } aside .nav-link span { diff --git a/Bootstrap.Admin/wwwroot/js/profiles.js b/Bootstrap.Admin/wwwroot/js/profiles.js index 9806069c..fbe66d1d 100644 --- a/Bootstrap.Admin/wwwroot/js/profiles.js +++ b/Bootstrap.Admin/wwwroot/js/profiles.js @@ -90,7 +90,7 @@ url: Profiles.url, method: "put", data: data, title: "修改用户显示名称", callback: function (result) { if (result) { - $('#userDisplayName').text(data.DisplayName); + $('#userDisplayName, .nav-header .username').text(data.DisplayName); } } }); diff --git a/Bootstrap.Admin/wwwroot/js/users.js b/Bootstrap.Admin/wwwroot/js/users.js index 350712dd..2a20437e 100644 --- a/Bootstrap.Admin/wwwroot/js/users.js +++ b/Bootstrap.Admin/wwwroot/js/users.js @@ -75,7 +75,7 @@ $(function () { }, callback: function (data) { if (data && data.success && data.oper === 'save' && data.data.UserName === $('#userDisplayName').attr('data-userName')) { - $('#userDisplayName').text(data.data.DisplayName); + $('#userDisplayName, .nav-header .username').text(data.data.DisplayName); } if (data && data.oper === 'create') { $('#userName').prop('readonly', false).removeClass("ignore");