diff --git a/Bootstrap.Admin/Views/Admin/Profiles.cshtml b/Bootstrap.Admin/Views/Admin/Profiles.cshtml index 54fb45d6..4e9c1876 100644 --- a/Bootstrap.Admin/Views/Admin/Profiles.cshtml +++ b/Bootstrap.Admin/Views/Admin/Profiles.cshtml @@ -78,27 +78,26 @@
网站皮肤
-
-
-
- - -
+ else + { +
  • @css.Name
  • + } + } + +
    -
    +
    @@ -107,10 +106,11 @@
    修改头像
    -
    +
    +
    diff --git a/Bootstrap.Admin/wwwroot/css/site.css b/Bootstrap.Admin/wwwroot/css/site.css index f902b40a..5b1b0f75 100644 --- a/Bootstrap.Admin/wwwroot/css/site.css +++ b/Bootstrap.Admin/wwwroot/css/site.css @@ -327,3 +327,7 @@ label.dropdown-item:first-child { font-size: 0.75rem; padding: 1px 5px; } + +.card-img { + max-width: 258px; +} diff --git a/Bootstrap.Admin/wwwroot/js/Profiles.js b/Bootstrap.Admin/wwwroot/js/Profiles.js index bce3a05e..336c1a58 100644 --- a/Bootstrap.Admin/wwwroot/js/Profiles.js +++ b/Bootstrap.Admin/wwwroot/js/Profiles.js @@ -62,5 +62,8 @@ break; } }); - $('button[data-admin="False"]').removeClass('d-none'); + $('[data-admin="False"]').removeClass('d-none'); + if ($('[enctype="multipart/form-data"]').is(":hidden")) { + $('.card-img').removeClass('d-none'); + } }); \ No newline at end of file