diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-03-28 05:42:30 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-03-28 05:42:30 +1100 |
| commit | 4a2491b24b58027a693b1a69f3b94bb23fb96f20 (patch) | |
| tree | 24296aa20e705abe3d76ec0149400de5ab234e4d /Pages | |
| parent | 6c06dfc4f83f30292e65c08a3cb0c48401d4bfa7 (diff) | |
v0.3av0.3a
Diffstat (limited to 'Pages')
| -rw-r--r-- | Pages/Gallery.razor | 8 | ||||
| -rw-r--r-- | Pages/ViewMedia.razor | 2 |
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 { |
