diff --git a/approot/playqueue.xml b/approot/playqueue.xml index 0f11e30b..0b7e7b74 100644 --- a/approot/playqueue.xml +++ b/approot/playqueue.xml @@ -46,7 +46,7 @@ ${}${artist-name}${}
- ${play-btn} ${del-btn} + ${play-btn}${del-btn}
diff --git a/approot/tracks.xml b/approot/tracks.xml index 66f73351..0c7d9f14 100644 --- a/approot/tracks.xml +++ b/approot/tracks.xml @@ -23,14 +23,19 @@ -
- ${cover class="media-object"} -
-
-

${name}

- ${}

${release-name}

${
} - ${}

${artist-name}

${
} - ${play-btn}${add-btn} +
+
+

${name}

+
+ + +
+ ${play-btn}${add-btn} +
diff --git a/docroot/css/lms.css b/docroot/css/lms.css index b416de3c..582fd01f 100644 --- a/docroot/css/lms.css +++ b/docroot/css/lms.css @@ -159,6 +159,20 @@ a:hover { background-color: lightgrey; } +.Lms-explore-tracks-entry { + min-height: 32px; + padding-top: 2px; + padding-bottom: 2px; +} + +.Lms-explore-tracks-entry:hover { + background-color: lightgrey; +} + +.Lms-explore-tracks-entry-controls { + text-align: center; +} + .Lms-explore-btn { font-size: 22px !important; cursor: pointer; @@ -166,7 +180,8 @@ a:hover { .Lms-playqueue-entry { min-height: 32px; - margin-bottom: 2px; + padding-top: 2px; + padding-bottom: 2px; } .Lms-playqueue-entry:hover { diff --git a/src/ui/explore/TracksView.cpp b/src/ui/explore/TracksView.cpp index dd177ba0..3299e832 100644 --- a/src/ui/explore/TracksView.cpp +++ b/src/ui/explore/TracksView.cpp @@ -20,7 +20,6 @@ #include "TracksView.hpp" #include -#include #include #include @@ -114,7 +113,6 @@ Tracks::addSome() { auto trackId = track.id(); Wt::WTemplate* entry = _tracksContainer->addNew(Wt::WString::tr("Lms.Explore.Tracks.template.entry")); - entry->addStyleClass("media"); entry->bindString("name", Wt::WString::fromUTF8(track->getName()), Wt::TextFormat::Plain); @@ -130,29 +128,6 @@ Tracks::addSome() entry->bindWidget("release-name", LmsApplication::createReleaseAnchor(track->getRelease())); } - Wt::WImage* cover = entry->bindNew("cover", LmsApp->getImageResource()->getTrackUrl(track.id(), 128)); - // Some images may not be square - cover->setWidth(128); - - Wt::WContainerWidget* clusterContainers = entry->bindNew("clusters"); - { - auto clusterTypes = ScanSettings::get(LmsApp->getDboSession())->getClusterTypes(); - auto clusterGroups = track->getClusterGroups(clusterTypes, 1); - - for (auto clusters : clusterGroups) - { - for (auto cluster : clusters) - { - auto clusterId = cluster.id(); - auto entry = clusterContainers->addWidget(LmsApp->createCluster(cluster)); - entry->clicked().connect([=] - { - _filters->add(clusterId); - }); - } - } - } - Wt::WText* playBtn = entry->bindNew("play-btn", Wt::WString::tr("Lms.Explore.template.play-btn"), Wt::TextFormat::XHTML); playBtn->clicked().connect(std::bind([=] {