1
0
Fork 0
mirror of https://github.com/bastienwirtz/homer.git synced 2026-01-22 18:06:11 +00:00

Add subtitle support - display subtitle if provided, otherwise show data

This commit is contained in:
Igor Kulman 2025-09-21 22:22:06 +02:00 committed by Bastien Wirtz
parent 843a814ac5
commit 06b677ab76

View file

@ -2,7 +2,8 @@
<Generic :item="item">
<template #content>
<p class="title is-4">{{ item.name }}</p>
<p class="subtitle is-6">
<p v-if="item.subtitle" class="subtitle is-6">{{ item.subtitle }}</p>
<p v-else class="subtitle is-6">
<span v-if="error" class="error">An error has occurred.</span>
<template v-else>
<span class="down monospace">