diff options
| -rw-r--r-- | Pages/Gallery.razor | 7 | ||||
| -rw-r--r-- | Pages/Gallery.razor.css | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Pages/Gallery.razor b/Pages/Gallery.razor index 0cf34b5..7e183f2 100644 --- a/Pages/Gallery.razor +++ b/Pages/Gallery.razor @@ -9,6 +9,13 @@ <PageTitle>@Title</PageTitle> +@if(Ingest && !userService.ShowNsfw) { + <div id="ingest-warning"> + <p><center>Ingest feed is not available unless NSFW mode is enabled!</center></p> + <p><center><i>You must enable NSFW mode to continue...</i></center></p> + </div> +} + <div style="padding:var(--size-default-gap);"> @foreach(var media in displayMedia) { // Precalculate thumbnail size to help the browser diff --git a/Pages/Gallery.razor.css b/Pages/Gallery.razor.css index d1750b4..0e01e0e 100644 --- a/Pages/Gallery.razor.css +++ b/Pages/Gallery.razor.css @@ -3,6 +3,9 @@ max-height: 200px; } -form#upload { - padding-bottom: 30px; +div#ingest-warning { + position: relative; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); }
\ No newline at end of file |
