fix: date view in list entries

This commit is contained in:
Julian Krauser 2025-02-19 13:10:27 +01:00
parent 27af6628e6
commit 5d3cce3b8b
2 changed files with 6 additions and 10 deletions

View file

@ -24,7 +24,7 @@
<h1>
{{ data?.title }}
</h1>
<p v-if="itemDate" class="w-full text-[#5c5c5c]">
<p v-if="itemDate && lookup?.show_date" class="w-full text-[#5c5c5c]">
{{ itemDate }}
</p>
<p class="w-full text-[#5c5c5c] line-clamp-2 overflow-hidden">
@ -78,10 +78,8 @@ const itemDate = computed(() => {
props.lookup?.list_with_date == "none" || props.lookup?.items_with_number != "none"
? ("2-digit" as const)
: undefined,
minute:
props.data?.date.includes("T") && props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined,
hour:
props.data?.date.includes("T") && props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined,
minute: props.data?.date.includes("T") ? ("2-digit" as const) : undefined,
hour: props.data?.date.includes("T") ? ("2-digit" as const) : undefined,
};
if (Object.values(config).filter((c) => c).length != 0) {
//(props.lookup?.list_with_date != "none" || props.lookup?.show_date)

View file

@ -10,7 +10,7 @@
<div class="grow shrink basis-0 flex-col justify-center items-center flex overflow-hidden">
<h1 class="w-full">{{ data?.title }}</h1>
<p v-if="itemDate" class="w-full text-[#5c5c5c]">
<p v-if="itemDate && lookup?.show_date" class="w-full text-[#5c5c5c]">
{{ itemDate }}
</p>
<p class="w-full text-[#5c5c5c] line-clamp-2 overflow-hidden">
@ -59,10 +59,8 @@ const itemDate = computed(() => {
props.lookup?.list_with_date == "none" || props.lookup?.items_with_number != "none"
? ("2-digit" as const)
: undefined,
minute:
props.data?.date.includes("T") && props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined,
hour:
props.data?.date.includes("T") && props.lookup?.items_with_number != "none" ? ("2-digit" as const) : undefined,
minute: props.data?.date.includes("T") ? ("2-digit" as const) : undefined,
hour: props.data?.date.includes("T") ? ("2-digit" as const) : undefined,
};
if (Object.values(config).filter((c) => c).length != 0) {
//(props.lookup?.list_with_date != "none" || props.lookup?.show_date)