aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-08 14:02:24 -0500
committerGitHub <noreply@github.com>2022-05-08 14:02:24 -0500
commit49d2e68ab679519c132bc2f7f97e80e34700637b (patch)
tree7947219ff49776710fb0619bfc1613b907528f25 /src/web
parentab88c3d6d50eede75fce403089ce51cf843272cc (diff)
parent2defa54268334f7d8690ae3f5de8c1ba9ed2a899 (diff)
downloadslskd-49d2e68ab679519c132bc2f7f97e80e34700637b.tar.gz
Merge pull request #455 from slskd/fold-css
Update search control CSS
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Search/Search.css14
-rw-r--r--src/web/src/config.js2
2 files changed, 8 insertions, 8 deletions
diff --git a/src/web/src/components/Search/Search.css b/src/web/src/components/Search/Search.css
index 7c91a08b..750c5c2d 100644
--- a/src/web/src/components/Search/Search.css
+++ b/src/web/src/components/Search/Search.css
@@ -15,8 +15,8 @@
height: 78px !important;
}
-@media only screen and (min-width: 851px) {
- .search-options-hide-no-slots, .search-options-hide-locked {
+@media only screen and (min-width: 991px) {
+ .search-options-hide-no-slots, .search-options-hide-locked, .search-options-fold-results {
margin-left: 1rem;
}
@@ -25,28 +25,28 @@
}
}
-@media only screen and (max-width: 850px) {
+@media only screen and (max-width: 685px) {
.search-options-sort {
width: 100%;
}
}
-@media only screen and (max-width: 850px) {
+@media only screen and (max-width: 990px) {
.search-option-toggles {
margin-top: 1rem;
}
- .search-options-hide-no-slots {
+ .search-options-hide-no-slots, .search-options-fold-results {
margin-left: 1rem;
}
}
-@media only screen and (max-width: 537px) {
+@media only screen and (max-width: 684px) {
.search-option-toggles {
display: grid;
}
- .search-options-hide-no-slots {
+ .search-options-hide-no-slots, .search-options-fold-results {
margin-top: 1rem;
margin-left: 0px;
}
diff --git a/src/web/src/config.js b/src/web/src/config.js
index 6f899564..8f0ac901 100644
--- a/src/web/src/config.js
+++ b/src/web/src/config.js
@@ -1,5 +1,5 @@
const urlBase = (window.urlBase === '/' ? '' : window.urlBase) || '';
-const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:5000/${urlBase}`;
+const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:5000${urlBase}`;
const apiBaseUrl = `${rootUrl}/api/v0`;
const hubBaseUrl = `${rootUrl}/hub`;
const tokenKey = 'slskd-token';