Skip to content

Commit

Permalink
Hide the row header if it has no content
Browse files Browse the repository at this point in the history
  • Loading branch information
ltouroumov committed Nov 19, 2024
1 parent c2f1860 commit cad7951
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/viewer/ViewProjectRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
:row-id="row.id"
/>
<div class="project-row" :class="{ hidden: !isVisible }">
<div class="row-header">
<div v-if="row.image || row.title || row.titleText" class="row-header">
<img
v-if="row.image"
class="row-image"
:src="row.image"
:alt="row.title"
/>
<!-- eslint-disable vue/no-v-html -->
<div class="row-title" v-html="formatText(row.title)" />
<div
v-if="row.title"
class="row-title"
v-html="formatText(row.title)"
/>
<div
v-if="row.titleText"
class="row-text"
Expand Down

0 comments on commit cad7951

Please sign in to comment.