From 5d2e4f1fe21aee6a1b646f5e01fdce9ac6893605 Mon Sep 17 00:00:00 2001 From: celine Date: Wed, 10 Dec 2025 03:46:08 -0500 Subject: [PATCH] fixes to styling of tag selector popover in draft post header --- .../[rkey]/Interactions/Interactions.tsx | 8 +- .../[rkey]/PostHeader/PostHeader.tsx | 92 ++++++---- components/Pages/PublicationMetadata.tsx | 167 +++++++++--------- components/Tags.tsx | 110 ++++++------ 4 files changed, 208 insertions(+), 169 deletions(-) diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx index f55aabf0..06838605 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx @@ -147,11 +147,7 @@ export const Interactions = (props: { ) : null} @@ -52,7 +52,9 @@ export const TagSelector = (props: { name={tag} selected onDelete={() => { - props.setSelectedTags(props.selectedTags.filter((t) => t !== tag)); + props.setSelectedTags( + props.selectedTags.filter((t) => t !== tag), + ); }} /> ))} @@ -148,7 +150,7 @@ export const TagSearchInput = (props: { return (
e.preventDefault()} asChild trigger={ } noArrow @@ -199,36 +201,42 @@ export const TagSearchInput = (props: { setIsOpen(true); }} /> - {props.selectedTags.length > 0 && ( - <> -
- {props.selectedTags.map((tag) => ( - { - props.setSelectedTags( - props.selectedTags.filter((t) => t !== tag), - ); - }} - /> - ))} -
-
- + {props.selectedTags.length > 0 ? ( +
+ {props.selectedTags.map((tag) => ( + { + props.setSelectedTags( + props.selectedTags.filter((t) => t !== tag), + ); + }} + /> + ))} +
+ ) : ( +
+ no tags selected +
)} +
+ {userInputResult && ( - { - selectTag(tagInputValue); - }} - /> + <> + { + selectTag(tagInputValue); + }} + /> + )} {filteredTags.map((tag, i) => ( void; }) => { return ( - +
+ +
); }; -- 2.51.2