diff --git a/LANCommander.Launcher/Styles/_library.scss b/LANCommander.Launcher/Styles/_library.scss index 74aea133..15a7a13f 100644 --- a/LANCommander.Launcher/Styles/_library.scss +++ b/LANCommander.Launcher/Styles/_library.scss @@ -26,6 +26,7 @@ z-index: 500; width: 320px; margin-top: 74px; + min-height: calc(100% - 74px); flex-shrink: 0; .ant-collapse { @@ -105,6 +106,14 @@ flex-grow: 1; } } + + .ant-empty { + height: 100%; + display: flex; + flex-direction: column; + justify-content: center; + background: rgba(255, 255, 255, 0.04); + } .ant-collapse-header-text { cursor: pointer; diff --git a/LANCommander.Launcher/UI/Library/Components/LibraryList.razor b/LANCommander.Launcher/UI/Library/Components/LibraryList.razor index f2ca8c17..3a74e2ba 100644 --- a/LANCommander.Launcher/UI/Library/Components/LibraryList.razor +++ b/LANCommander.Launcher/UI/Library/Components/LibraryList.razor @@ -4,31 +4,41 @@ @inject LibraryService LibraryService @inject ImportService ImportService @inject MessageBusService MessageBusService +@inject NavigationManager NavigationManager - - @if (Groups.Count > 1) - { - foreach (var group in Groups.OrderByTitle(g => g)) + @if (LibraryItems == null || !LibraryItems.Any()) + { + + + + } + else + { + + @if (Groups.Count > 1) { - - - + foreach (var group in Groups.OrderByTitle(g => g)) + { + + + + + + } + } + else + { + + + } - } - else - { - - - - - - } - - - + + + + } @code {