UI: made artist images circle, ref #639
This commit is contained in:
+2
-2
@@ -14,9 +14,9 @@
|
||||
</message>
|
||||
|
||||
<message id="Lms.Explore.Artists.template.entry">
|
||||
<div class="col h-100 Lms-bg-dark-hover rounded">
|
||||
<div class="col h-100 Lms-bg-dark-hover">
|
||||
<div class="p-2">
|
||||
<div class="Lms-responsive-square Lms-cover-container mb-1">
|
||||
<div class="Lms-responsive-circle Lms-cover-container mb-1">
|
||||
${image class="shadow-sm"}
|
||||
</div>
|
||||
${name class="d-block text-center text-truncate text-decoration-none link-secondary"}
|
||||
|
||||
@@ -110,6 +110,15 @@ body {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.Lms-image-artist {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
#lms-mp-progress {
|
||||
transition: none;
|
||||
}
|
||||
@@ -184,6 +193,18 @@ body {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.Lms-responsive-circle {
|
||||
width: 100%;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.Lms-responsive-circle:after {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-bottom: 100%;
|
||||
}
|
||||
|
||||
.Lms-responsive-square {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace lms::ui::ArtistListHelpers
|
||||
else
|
||||
image = utils::createDefaultArtistArtworkImage();
|
||||
|
||||
image->addStyleClass("Lms-cover-release Lms-cover-anchor rounded"); // hack
|
||||
image->addStyleClass("Lms-image-artist Lms-cover-anchor"); // hack
|
||||
anchor->setImage(std::move(image));
|
||||
|
||||
return entry;
|
||||
|
||||
Reference in New Issue
Block a user