summaryrefslogtreecommitdiff
path: root/Pages
diff options
context:
space:
mode:
Diffstat (limited to 'Pages')
-rw-r--r--Pages/Gallery.razor8
-rw-r--r--Pages/ViewMedia.razor2
2 files changed, 6 insertions, 4 deletions
diff --git a/Pages/Gallery.razor b/Pages/Gallery.razor
index c037979..704b73d 100644
--- a/Pages/Gallery.razor
+++ b/Pages/Gallery.razor
@@ -29,9 +29,8 @@
<img src="/media/thumb/@(media.Guid)?h=200" width=@width height="200"/>
</a>
}
+ <div id="canary" style="height:1px;"></div>
</div>
-
- <div id="canary"/>
}
<script suppress-error="BL9992">
@@ -42,7 +41,10 @@
await dotNetObject.invokeMethodAsync('LoadMedia', false);
}
},
- { threshold: [1] });
+ {
+ root: document.getElementById('content'),
+ threshold: 0
+ });
scrollObserver.observe(document.getElementById("canary"));
}
</script>
diff --git a/Pages/ViewMedia.razor b/Pages/ViewMedia.razor
index ce9d608..b5a33a2 100644
--- a/Pages/ViewMedia.razor
+++ b/Pages/ViewMedia.razor
@@ -67,7 +67,7 @@
@(file.LastWriteTime?.ToString("d") ?? "N/A")
</td>
<td title=@file.UploadTime>@(file.UploadTime.ToString("d"))</td>
- <td title=@file.Filename>
+ <td title=@(file.Path is not null ? $"{file.Path.Replace('\\', '/')}/{file.Filename}" : file.Filename)>
@if(sourceUrl is not null) {
<a class="nondecorated" target="_blank" href=@sourceUrl>@file.Filename</a>
} else {