From 69c8736a5273bf3abd26be91210d6ce91fea1883 Mon Sep 17 00:00:00 2001 From: Taylor Buchanan Date: Sat, 19 Oct 2019 19:45:44 -0500 Subject: [PATCH] Fix search bar overlap on mobile --- .../app/search/moviesearch.component.html | 47 +++++++++------- .../app/search/search.component.scss | 2 +- .../app/search/tvsearch.component.html | 53 ++++++++++++------- src/Ombi/ClientApp/styles/base.scss | 21 ++++++++ 4 files changed, 84 insertions(+), 39 deletions(-) diff --git a/src/Ombi/ClientApp/app/search/moviesearch.component.html b/src/Ombi/ClientApp/app/search/moviesearch.component.html index ed669e0f5..30507d004 100644 --- a/src/Ombi/ClientApp/app/search/moviesearch.component.html +++ b/src/Ombi/ClientApp/app/search/moviesearch.component.html @@ -1,30 +1,41 @@ 
+ +
+ + + +
+
+
- +
-
- - - +
+
-
+ +
+ +
+
diff --git a/src/Ombi/ClientApp/app/search/search.component.scss b/src/Ombi/ClientApp/app/search/search.component.scss index b8339bd82..52ff70f0b 100644 --- a/src/Ombi/ClientApp/app/search/search.component.scss +++ b/src/Ombi/ClientApp/app/search/search.component.scss @@ -3,7 +3,7 @@ padding-top: 5% } .form-control-search { - width: 77%; + padding-right: 165px; } } diff --git a/src/Ombi/ClientApp/app/search/tvsearch.component.html b/src/Ombi/ClientApp/app/search/tvsearch.component.html index 5975abb0d..86ee7c24c 100644 --- a/src/Ombi/ClientApp/app/search/tvsearch.component.html +++ b/src/Ombi/ClientApp/app/search/tvsearch.component.html @@ -1,32 +1,44 @@ 
diff --git a/src/Ombi/ClientApp/styles/base.scss b/src/Ombi/ClientApp/styles/base.scss index 9c7756d8f..54d62c3cf 100644 --- a/src/Ombi/ClientApp/styles/base.scss +++ b/src/Ombi/ClientApp/styles/base.scss @@ -389,6 +389,27 @@ $border-radius: 10px; padding-right: 105px; } +.search-button-container { + margin-top: 10px; + text-align: center; +} + +@media (max-width: 450px) { + .form-control-search { + padding-right: 0 !important; + } + + .search-button-container-inline { + display: none; + } +} + +@media (min-width: 450px) { + .search-button-container { + display: none; + } +} + .input-group-addon .btn-group { position: absolute; right: 45px;