diff --git a/ErsatzTV/Shared/MainLayout.razor b/ErsatzTV/Shared/MainLayout.razor
index ad04aa4aa..c6a79f905 100644
--- a/ErsatzTV/Shared/MainLayout.razor
+++ b/ErsatzTV/Shared/MainLayout.razor
@@ -10,21 +10,21 @@
-
+
-
-
+
+
+
+
M3U
XMLTV
@@ -74,6 +74,10 @@
private string _query;
+ private record SearchModel;
+
+ private SearchModel _dummyModel = new();
+
private MudTheme _ersatzTvTheme => new()
{
Palette = new Palette
@@ -122,4 +126,11 @@
}
}
+ private void PerformSearch()
+ {
+ string query = HttpUtility.UrlEncode(_query);
+ NavigationManager.NavigateTo($"/search?query={query}", true);
+ StateHasChanged();
+ }
+
}
\ No newline at end of file
diff --git a/ErsatzTV/wwwroot/css/site.css b/ErsatzTV/wwwroot/css/site.css
index c881b83cb..b68551fbb 100644
--- a/ErsatzTV/wwwroot/css/site.css
+++ b/ErsatzTV/wwwroot/css/site.css
@@ -74,6 +74,10 @@
border-radius: 4px;
}
+.app-bar form {
+ flex-grow: 1;
+}
+
.fanart-container {
position: relative;
width: 100%;