refactor(workspace): remove redundant hashtag filter pills from tags header
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 58s
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 58s
This commit is contained in:
1 parent
9ab9af3a9e
commit
60c302e23e
1 file changed
-32
@@ -4074,38 +4074,6 @@ export const WorkspaceView: React.FC<WorkspaceViewProps> = ({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Quick tag hopping pills */}
|
|
||||||
{workspaceTags.length > 0 && (
|
|
||||||
<div className="flex items-center gap-1.5 flex-wrap pt-1 border-t border-border">
|
|
||||||
<span className="text-[11px] text-muted font-medium mr-1">Filter:</span>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={() => setSelectedTag(null)}
|
|
||||||
className={`px-2 py-0.5 rounded-pill text-[11px] transition-colors ${
|
|
||||||
selectedTag === null
|
|
||||||
? 'bg-accent text-white font-semibold'
|
|
||||||
: 'badge-neutral hover:border-accent hover:text-main'
|
|
||||||
}`}
|
|
||||||
>
|
|
||||||
Alle ({workspaceTags.length})
|
|
||||||
</button>
|
|
||||||
{(tagSearchQuery ? filteredWorkspaceTags : workspaceTags).slice(0, 10).map((t) => (
|
|
||||||
<button
|
|
||||||
key={t.tag}
|
|
||||||
type="button"
|
|
||||||
onClick={() => openTagPage(t.tag)}
|
|
||||||
className={`px-2 py-0.5 rounded-pill text-[11px] transition-colors ${
|
|
||||||
selectedTag === t.tag
|
|
||||||
? 'badge-accent font-semibold'
|
|
||||||
: 'badge-neutral hover:border-accent hover:text-main'
|
|
||||||
}`}
|
|
||||||
>
|
|
||||||
#{t.tag} ({t.count})
|
|
||||||
</button>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* If NO tag is selected, show the big overview grid! */}
|
{/* If NO tag is selected, show the big overview grid! */}
|
||||||
|
|||||||
Reference in new issue
Block a user