Refactor Header and Preview components: update tag handling styles, rename dropdown class, and clean up unused modal styles.

This commit is contained in:
sHa
2025-05-01 14:28:01 +03:00
parent 4a2230223c
commit 27ae28be63
2 changed files with 11 additions and 104 deletions

View File

@@ -42,7 +42,6 @@
{#if getTagObj(tagText)}
<button
class="selected-tag"
style={getTagObj(tagText).color ? `background: ${getTagObj(tagText).color}; color: #fff;` : ''}
aria-label={`Remove tag: ${getTagObj(tagText).text}`}
on:click={() => removeTag(getTagObj(tagText).text)}
>
@@ -56,11 +55,10 @@
+ Tag{selectedTags.length ? '' : 's'}
</button>
{#if tagDropdownOpen}
<div class="dropdown-list">
<div class="dropdown-menu">
{#each allTags.filter(t => !selectedTags.includes(t.text)) as tagObj}
<button
class="dropdown-tag"
style={tagObj.color ? `background: ${tagObj.color}; color: #fff;` : ''}
class="dropdown-item"
on:click={() => addTag(tagObj.text)}
aria-label={`Add tag: ${tagObj.text}`}
>{tagObj.text}</button>