diff --git a/src/renderer/style.less b/src/renderer/style.less index 27119f5b..9e400422 100644 --- a/src/renderer/style.less +++ b/src/renderer/style.less @@ -5168,7 +5168,39 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb { } } -/* Cider */ +// Cider App + +.mediaitem-list-item__grid { + overflow-x: overlay; + overflow-y: hidden; + background: rgba(200, 200, 200, 0.05); + border-radius: 10px; + padding: var(--contentInnerPadding); + box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px; + .grid-body { + display: grid; + grid-auto-flow: column dense; + grid-template-rows: auto auto auto auto; + grid-gap: 0 6px; + padding: 2px 0; + justify-content: left; + width: 0; + } + + .cd-mediaitem-list-item { + width: 350px; + height: 60px; + } + + &::-webkit-scrollbar { + display: none; + } + + &:hover::-webkit-scrollbar { + display: initial; + + } +} .settings-page { padding:0px; diff --git a/src/renderer/views/pages/artist.ejs b/src/renderer/views/pages/artist.ejs index 07300f6f..860ef200 100644 --- a/src/renderer/views/pages/artist.ejs +++ b/src/renderer/views/pages/artist.ejs @@ -72,23 +72,18 @@

{{app.getLz('term.topSongs')}}

-
+
- +
+ - +
+ diff --git a/src/renderer/views/pages/search.ejs b/src/renderer/views/pages/search.ejs index 6c3f0c9d..469443fe 100644 --- a/src/renderer/views/pages/search.ejs +++ b/src/renderer/views/pages/search.ejs @@ -19,13 +19,15 @@
+ v-if="search.results.song.data.length >= 12">
-
+
+
+ v-for="(item, index) in search.results.song.data.limit(12)"> +
@@ -106,24 +108,25 @@ data: function () { return { app: this.$root, - categoriesView : [], - categoriesReady : false, - } + categoriesView: [], + categoriesReady: false, + } }, methods: { getTopResult() { try { return this.search.results[this.search.results.meta.results.order[0]]["data"][0] - } catch( error ) { + } catch (error) { return false } }, async getCategories() { - if(this.categoriesView != [] && this.categoriesView.length > 0) {this.categoriesReady = true; return await true;} else { - let response = await this.app.mk.api.v3.music(`/v1/recommendations/${this.app.mk.storefrontId}?timezone=${encodeURIComponent(this.app.formatTimezoneOffset())}&name=search-landing&platform=web&extend=editorialArtwork&art%5Burl%5D=f%2Cc&types=editorial-items%2Capple-curators%2Cactivities`); - this.categoriesView = response.data.data; - this.categoriesReady = true; - return await true;} + if (this.categoriesView != [] && this.categoriesView.length > 0) { this.categoriesReady = true; return await true; } else { + let response = await this.app.mk.api.v3.music(`/v1/recommendations/${this.app.mk.storefrontId}?timezone=${encodeURIComponent(this.app.formatTimezoneOffset())}&name=search-landing&platform=web&extend=editorialArtwork&art%5Burl%5D=f%2Cc&types=editorial-items%2Capple-curators%2Cactivities`); + this.categoriesView = response.data.data; + this.categoriesReady = true; + return await true; + } } } })