Skip to content

Commit 5522254

Browse files
committed
#2304 add label for date andchange color for entity template label
1 parent b95f338 commit 5522254

File tree

1 file changed

+4
-2
lines changed
  • Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/lib/components

1 file changed

+4
-2
lines changed

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI.Svelte/src/lib/components/Card.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
};
2525
2626
export let authorLabel = 'Authors';
27+
export let dateLabel = 'Modified';
2728
2829
const { title, description, author, license, id, doi, entity, date, entitytemplate } = card;
2930
@@ -96,7 +97,8 @@
9697
<span class="chip"></span>
9798
<p class="shrink">
9899
{#if date && date.length > 0}
99-
{date}
100+
<span class="font-semibold">{dateLabel}: </span>
101+
<span class="text-sm italic text-neutral-600">{date}</span>
100102
{/if}
101103
</p>
102104
</div>
@@ -123,7 +125,7 @@
123125
</div>
124126
<div class="ml-auto flex gap-2">
125127
{#if entitytemplate && entitytemplate.length > 0}
126-
<div title="Entity Category" class="rounded-full px-3 p-1 bg-primary-500">
128+
<div title="Entity Category" class="rounded-full px-3 p-1 bg-primary-400">
127129
<span class="text-sm font-semibold text-on-secondary-token"
128130
>{entitytemplate.toLowerCase()}</span
129131
>

0 commit comments

Comments
 (0)