diff --git a/src/Bootstrap/dist/css/bootstrap-theme.css b/src/Bootstrap/dist/css/bootstrap-theme.css index cec5e2b12a..a3a328898f 100644 --- a/src/Bootstrap/dist/css/bootstrap-theme.css +++ b/src/Bootstrap/dist/css/bootstrap-theme.css @@ -1173,6 +1173,9 @@ img.reserved-indicator-icon { position: relative; top: 2px; } +.page-manage-packages .inner-table { + margin-bottom: 0; +} .page-delete-package h1 { margin-bottom: 0; } diff --git a/src/Bootstrap/less/theme/page-manage-packages.less b/src/Bootstrap/less/theme/page-manage-packages.less index 99d1ee5175..b3e200baac 100644 --- a/src/Bootstrap/less/theme/page-manage-packages.less +++ b/src/Bootstrap/less/theme/page-manage-packages.less @@ -50,4 +50,8 @@ top: 2px; } } + + .inner-table { + margin-bottom: 0px; + } } diff --git a/src/NuGetGallery/Views/Users/Packages.cshtml b/src/NuGetGallery/Views/Users/Packages.cshtml index 9942caefad..2ef56da1a9 100644 --- a/src/NuGetGallery/Views/Users/Packages.cshtml +++ b/src/NuGetGallery/Views/Users/Packages.cshtml @@ -90,7 +90,8 @@ <script type="text/html" id="manage-packages"> <div class="col-md-12"> <div class="panel-collapse collapse in" aria-expanded="true"> - <table class="table"> + <!-- ko if: VisiblePackagesCount --> + <table class="table inner-table"> <thead> <tr class="manage-package-headings"> <th class="hidden-xs"><span class="hidden">Package Icon</span></th> @@ -155,6 +156,10 @@ </tr> </tbody> </table> + <!-- /ko --> + <!-- ko ifnot: VisiblePackagesCount --> + <span>There are no packages that fit this criteria.</span> + <!-- /ko --> </div> </div> </script> @@ -162,7 +167,8 @@ <script type="text/html" id="manage-namespaces"> <div class="col-md-12"> <div class="panel-collapse collapse in" aria-expanded="true"> - <table class="table"> + <!-- ko if: VisibleNamespacesCount --> + <table class="table inner-table"> <thead> <tr class="manage-package-headings"> <th class="hidden-xs"><span class="hidden">Reserved Namespace Icon</span></th> @@ -193,6 +199,10 @@ </tr> </tbody> </table> + <!-- /ko --> + <!-- ko ifnot: VisibleNamespacesCount --> + <span>There are no reserved namespaces that fit this criteria.</span> + <!-- /ko --> </div> </div> </script> @@ -200,7 +210,8 @@ <script type="text/html" id="manage-owner-requests"> <div class="col-md-12"> <div class="panel-collapse collapse in" aria-expanded="true"> - <table class="table"> + <!-- ko if: VisibleRequestsCount --> + <table class="table inner-table"> <thead> <tr class="manage-package-headings"> <th class="hidden-xs"><span class="hidden">Package Icon</span></th> @@ -249,6 +260,10 @@ </tr> </tbody> </table> + <!-- /ko --> + <!-- ko ifnot: VisibleRequestsCount --> + <span>There are no requests that fit this criteria.</span> + <!-- /ko --> </div> </div> </script>