diff --git a/CHANGELOG.md b/CHANGELOG.md index 47cd266ce..bda906a8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `ETV_UI_PORT`: port used for admin UI, defaults to 8409 - Publish docker images to ghcr.io (`ghcr.io/ersatztv/ersatztv`) +### Changed +- Start to make UI minimally responsive (functional on smaller screens) + ### Fixed - Fix error message about synchronizing Plex collections from a Plex server that has zero collections diff --git a/ErsatzTV/Pages/Index.razor b/ErsatzTV/Pages/Index.razor index 392a7f40a..6c748a76e 100644 --- a/ErsatzTV/Pages/Index.razor +++ b/ErsatzTV/Pages/Index.razor @@ -1,4 +1,5 @@ @page "/" +@page "/system/health" @using System.Reflection @using ErsatzTV.Application.Health @using ErsatzTV.Core.Health diff --git a/ErsatzTV/Pages/Search.razor b/ErsatzTV/Pages/Search.razor index fa59c22b3..5fc8bb16d 100644 --- a/ErsatzTV/Pages/Search.razor +++ b/ErsatzTV/Pages/Search.razor @@ -8,7 +8,7 @@ @using ErsatzTV.Extensions @implements IDisposable - +
@if (IsSelectMode()) { @@ -38,78 +38,88 @@ } else { - @_query - if (_movies?.Count > 0) - { - @_movies.Count Movies - } +
+ @_query + @if (_movies?.Count > 0) + { + @_movies.Count Movies + } - if (_shows?.Count > 0) - { - @_shows.Count Shows - } + @if (_shows?.Count > 0) + { + @_shows.Count Shows + } - if (_seasons?.Count > 0) - { - @_seasons.Count Seasons - } + @if (_seasons?.Count > 0) + { + @_seasons.Count Seasons + } - if (_episodes?.Count > 0) - { - @_episodes.Count Episodes - } + @if (_episodes?.Count > 0) + { + @_episodes.Count Episodes + } - if (_artists?.Count > 0) - { - @_artists.Count Artists - } + @if (_artists?.Count > 0) + { + @_artists.Count Artists + } - if (_musicVideos?.Count > 0) - { - @_musicVideos.Count Music Videos - } + @if (_musicVideos?.Count > 0) + { + @_musicVideos.Count Music Videos + } - if (_otherVideos?.Count > 0) - { - @_otherVideos.Count Other Videos - } + @if (_otherVideos?.Count > 0) + { + @_otherVideos.Count Other Videos + } - if (_songs?.Count > 0) - { - @_songs.Count Songs - } + @if (_songs?.Count > 0) + { + @_songs.Count Songs + } - if (_images?.Count > 0) - { - @_images.Count Images - } - -
- - - Add All - - - - - Add All - - - - - Save As - - + @if (_images?.Count > 0) + { + @_images.Count Images + } +
+
+ + + Add All + + + + + Add All + + + + + Save As + + +
+
+
+
+ + + + +
}
diff --git a/ErsatzTV/Shared/MainLayout.razor b/ErsatzTV/Shared/MainLayout.razor index 6c1981c66..4c6652928 100644 --- a/ErsatzTV/Shared/MainLayout.razor +++ b/ErsatzTV/Shared/MainLayout.razor @@ -16,7 +16,8 @@ -
+ +
ErsatzTV @@ -70,33 +71,35 @@
} - - @if (SystemStartup.IsDatabaseReady && SystemStartup.IsSearchIndexReady) - { - M3U - XMLTV - } - @* API *@ - - - - - - - - - - -
- - - -
-
+
+
+ @if (SystemStartup.IsDatabaseReady && SystemStartup.IsSearchIndexReady) + { + M3U + XMLTV + } + @* API *@ + + + + + + + + + + +
+ + + +
+
+
@if (SystemStartup.IsDatabaseReady && SystemStartup.IsSearchIndexReady) { - + Channels FFmpeg Profiles @@ -133,6 +136,7 @@ Settings + Health Checks Logs Troubleshooting @@ -159,6 +163,7 @@ private record SearchModel; private readonly SearchModel _dummyModel = new(); + private bool _drawerIsOpen = true; private bool _isOpen; private List _searchTargets; @@ -188,11 +193,12 @@ ActionDefault = "rgba(255,255,255, 0.80)", Primary = "#009000", Secondary = "#009090", - AppbarBackground = "#121212", - Background = "#272727", - DrawerBackground = "#1f1f1f", Surface = "#1f1f1f", + AppbarBackground = "#121212", + AppbarText = "rgba(255,255,255, 0.80)", + DrawerBackground = "#1f1f1f", DrawerText = "rgba(255,255,255, 0.80)", + Background = "#272727", TextPrimary = "rgba(255,255,255, 0.80)", TextSecondary = "rgba(255,255,255, 0.80)", TextDisabled = "rgba(255,255,255, 0.40)", @@ -290,4 +296,9 @@ var uri = new Uri(NavigationManager.Uri); return $"{uri.Scheme}://{uri.Host}:{Settings.StreamingPort}/iptv/{path}"; } + + private void ToggleDrawer() + { + _drawerIsOpen = !_drawerIsOpen; + } } \ No newline at end of file