Skip to content

Commit

Permalink
FaceCovers: Hide first description line if there's no face title
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Sep 14, 2022
1 parent 535da6c commit 59c71ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/FaceCover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
:style="coverDimensions">
</div>
<div class="face-cover__details">
<div class="face-cover__details__first-line">
<h2 :class="{'face-cover__details__name': true, 'hidden-visually': baseName.match(/^[0-9]+$/)}">
<div v-if="!baseName.match(/^[0-9]+$/)" class="face-cover__details__first-line">
<h2 class="face-cover__details__name">
{{ baseName }}
</h2>
</div>
Expand Down Expand Up @@ -157,6 +157,7 @@ export default {
}

&__second-line {
margin-top: 6px;
color: var(--color-text-maxcontrast);
}

Expand Down

0 comments on commit 59c71ae

Please sign in to comment.