Browse Source

Add visual distinction for event tags

- Index event (30040) tags: blue
- Content event (30041) tags: green
- Improves visual distinction between event types

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
master
limina1 5 months ago
parent
commit
cb630d38cd
  1. 6
      src/lib/components/ZettelEditor.svelte

6
src/lib/components/ZettelEditor.svelte

@ -962,7 +962,7 @@
{section.title} {section.title}
</h2> </h2>
<!-- Tags --> <!-- Tags (blue for index events) -->
{#if section.tags && section.tags.length > 0} {#if section.tags && section.tags.length > 0}
<div class="flex flex-wrap gap-2"> <div class="flex flex-wrap gap-2">
{#each section.tags as tag} {#each section.tags as tag}
@ -1001,12 +1001,12 @@
)} )}
</div> </div>
<!-- Tags --> <!-- Tags (green for content events) -->
{#if section.tags && section.tags.length > 0} {#if section.tags && section.tags.length > 0}
<div class="flex flex-wrap gap-2"> <div class="flex flex-wrap gap-2">
{#each section.tags as tag} {#each section.tags as tag}
<span <span
class="bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200 px-2 py-1 rounded-full text-xs font-medium" class="bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200 px-2 py-1 rounded-full text-xs font-medium"
> >
#{tag[1]} #{tag[1]}
</span> </span>

Loading…
Cancel
Save