Skip to content

Commit

Permalink
oh-label-card: Hide label if no label or Item configured
Browse files Browse the repository at this point in the history
This fixes an issue where "-" was displayed as label in that case,
which was very annoying when using the label card only for displaying an icon.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Nov 16, 2024
1 parent 45dd117 commit 0e9fd10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<f7-list>
<f7-list-item :link="config.action ? true : false" no-chevron>
<oh-icon slot="media" v-if="config.icon" :icon="config.icon" :height="config.iconSize || 32" :width="config.iconSize || 32" :state="(config.item && config.iconUseState) ? context.store[config.item].state : null" :color="config.iconColor" />
<div :class="config.class">
<div v-if="config.label || config.item" :class="config.class">
<span :style="{ 'font-size': config.fontSize || '24px', 'font-weight': config.fontWeight || 'normal' }">
{{ label }}
</span>
Expand Down

0 comments on commit 0e9fd10

Please sign in to comment.