From 38134e2f0acd8e81e5922d039c7f8ab5b86e12f9 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 22 Jan 2020 10:43:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E8=A1=A8=E5=A4=B4=20table=20border=20=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Shared/Table.razor | 2 +- .../Bootstrap.Admin/wwwroot/css/blazor.css | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Shared/Table.razor b/src/admin/Bootstrap.Admin/Shared/Table.razor index 406eae98..8b2be987 100644 --- a/src/admin/Bootstrap.Admin/Shared/Table.razor +++ b/src/admin/Bootstrap.Admin/Shared/Table.razor @@ -12,7 +12,7 @@ -
+
@if(FixedHeader) {
diff --git a/src/admin/Bootstrap.Admin/wwwroot/css/blazor.css b/src/admin/Bootstrap.Admin/wwwroot/css/blazor.css index 11090234..a91f7526 100644 --- a/src/admin/Bootstrap.Admin/wwwroot/css/blazor.css +++ b/src/admin/Bootstrap.Admin/wwwroot/css/blazor.css @@ -135,8 +135,6 @@ nav .dropdown .nav-link-close.dropdown-toggle:after { } .bootstrap-table .fixed-table-body { - overflow: auto; - border-radius: 4px; height: 300px; } @@ -150,7 +148,6 @@ nav .dropdown .nav-link-close.dropdown-toggle:after { .table-wrapper { border-radius: 4px; - overflow: auto; margin-bottom: 1rem; } @@ -158,6 +155,22 @@ nav .dropdown .nav-link-close.dropdown-toggle:after { margin-bottom: 0; } +.table-fixed-header { + border: solid 1px #dee2e6; +} + + .table-fixed-header .table { + border: none; + } + + .table-fixed-header .table th:last-child { + border-right-width: 0; + } + + .table-fixed-header .table th:first-child, .table-fixed-header .table td:first-child { + border-left-width: 0; + } + .pagination-bar { flex: 1 1 auto; margin-bottom: 1rem;