diff --git a/LANCommander/Components/ArchiveBrowser.razor b/LANCommander/Components/ArchiveBrowser.razor
index 9f230bc..990f364 100644
--- a/LANCommander/Components/ArchiveBrowser.razor
+++ b/LANCommander/Components/ArchiveBrowser.razor
@@ -3,41 +3,36 @@
@using System.IO.Compression;
@inject ArchiveService ArchiveService;
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
+ Name
+ Size
+ Modified
+ @if (OnFileSelected.HasDelegate)
+ {
- Name
- Size
- Modified
- @if (OnFileSelected.HasDelegate)
- {
-
- }
-
-
-
- @GetFileName(context)
- @ByteSize.FromBytes(context.Length)
- @context.LastWriteTime
- @if (OnFileSelected.HasDelegate)
- {
- Select
- }
-
-
-
-
-
+ }
+
+
+
+ @GetFileName(context)
+ @ByteSize.FromBytes(context.Length)
+ @context.LastWriteTime
+ @if (OnFileSelected.HasDelegate)
+ {
+ Select
+ }
+
+
+
@code {
[Parameter] public Guid ArchiveId { get; set; }
@@ -73,7 +68,10 @@
if (SelectedDirectory == null)
SelectedDirectory = selectedDirectory;
- CurrentPathEntries = Entries.Where(e => e.FullName.StartsWith(SelectedDirectory.FullName) && e.FullName != SelectedDirectory.FullName);
+ if (SelectedDirectory.FullName == "")
+ CurrentPathEntries = Entries.Where(e => !e.FullName.TrimEnd('/').Contains('/'));
+ else
+ CurrentPathEntries = Entries.Where(e => e.FullName.StartsWith(SelectedDirectory.FullName) && e.FullName != SelectedDirectory.FullName);
}
private string GetFileName(ZipArchiveEntry entry)
diff --git a/LANCommander/Components/ArchiveFileSelector.razor b/LANCommander/Components/ArchiveFileSelector.razor
index e46c106..f58bba5 100644
--- a/LANCommander/Components/ArchiveFileSelector.razor
+++ b/LANCommander/Components/ArchiveFileSelector.razor
@@ -6,9 +6,7 @@
-
-
-
+
diff --git a/LANCommander/wwwroot/css/site.css b/LANCommander/wwwroot/css/site.css
index 2aa7083..6f3280d 100644
--- a/LANCommander/wwwroot/css/site.css
+++ b/LANCommander/wwwroot/css/site.css
@@ -1,4 +1,9 @@
.mud-table-cell .mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text,
.mud-table-cell .mud-input-control {
margin-top: 0;
+}
+
+.mud-dialog-fullscreen .mud-dialog-title + div > div,
+.mud-dialog-fullscreen .mud-dialog-content {
+ max-height: calc(100vh - 64px);
}
\ No newline at end of file