Skip to content

Commit

Permalink
feat: LEAP-1476: Add ability to edit classifications on existing comm…
Browse files Browse the repository at this point in the history
…ents (#6532)
  • Loading branch information
jombooth authored Oct 16, 2024
1 parent 92fd8bb commit e824fbd
Show file tree
Hide file tree
Showing 7 changed files with 251 additions and 192 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import { LinkState } from "./LinkState";
import "./CommentForm.scss";
import { NewTaxonomy as Taxonomy, type TaxonomyPath } from "../../../components/NewTaxonomy/NewTaxonomy";
import { CommentFormButtons } from "./CommentFormButtons";
import { taxonomyPathsToSelectedItems } from "../../../utils/commentClassification";

const TAXONOMY_OPTIONS = { pathSeparator: "/", showFullPath: true };
import { taxonomyPathsToSelectedItems, COMMENT_TAXONOMY_OPTIONS } from "../../../utils/commentClassification";

export type CommentFormProps = {
commentStore: any;
Expand Down Expand Up @@ -174,7 +172,7 @@ export const CommentForm: FC<CommentFormProps> = observer(({ commentStore, annot
selected={selections}
items={classificationsItems}
onChange={taxonomyOnChange}
options={TAXONOMY_OPTIONS}
options={COMMENT_TAXONOMY_OPTIONS}
defaultSearch={false}
/>
</Elem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
overflow: hidden;
}

&__classifications-row > div {
width: 100%;
}

&__linkState {
padding: 4px 0 0;
margin-left: -5px;
Expand Down
Loading

0 comments on commit e824fbd

Please sign in to comment.