diff --git a/web/libs/editor/src/common/TextArea/TextArea.tsx b/web/libs/editor/src/common/TextArea/TextArea.tsx index 77ed4c550cdd..542aa2afb666 100644 --- a/web/libs/editor/src/common/TextArea/TextArea.tsx +++ b/web/libs/editor/src/common/TextArea/TextArea.tsx @@ -24,6 +24,8 @@ export type TextAreaProps = { placeholder?: string; name?: string; id?: string; + "aria-label"?: string; + "data-testid"?: string; }; export const TextArea: FC = ({ diff --git a/web/libs/editor/src/components/SidePanels/DetailsPanel/Relations.prefix.css b/web/libs/editor/src/components/SidePanels/DetailsPanel/Relations.prefix.css index 1b9a6c56b4e6..bebce7e2c953 100644 --- a/web/libs/editor/src/components/SidePanels/DetailsPanel/Relations.prefix.css +++ b/web/libs/editor/src/components/SidePanels/DetailsPanel/Relations.prefix.css @@ -85,16 +85,43 @@ .relation-meta { display: flex; + flex-direction: column; + gap: 8px; padding-left: 64px; + padding-right: 8px; padding-bottom: 5px; - align-items: center; + align-items: stretch; &__title { flex: none; padding-right: 8px; } + &__field { + display: flex; + flex-direction: column; + gap: 4px; + } + + &__label { + color: var(--color-neutral-content-subtle); + font-size: 12px; + line-height: 16px; + } + &__select { flex: 1; } + + &__note { + width: 100%; + min-height: 48px !important; + padding: 6px 8px !important; + border: 1px solid var(--color-neutral-border) !important; + border-radius: 4px !important; + background-color: var(--color-neutral-background) !important; + color: var(--color-neutral-content) !important; + font-size: 12px !important; + line-height: 18px !important; + } } diff --git a/web/libs/editor/src/components/SidePanels/DetailsPanel/Relations.tsx b/web/libs/editor/src/components/SidePanels/DetailsPanel/Relations.tsx index 746cea682311..32e0f071aab4 100644 --- a/web/libs/editor/src/components/SidePanels/DetailsPanel/Relations.tsx +++ b/web/libs/editor/src/components/SidePanels/DetailsPanel/Relations.tsx @@ -10,6 +10,7 @@ import { import { Button, Select } from "@humansignal/ui"; import { observer } from "mobx-react"; import { type FC, useCallback, useMemo, useState } from "react"; +import { TextArea } from "../../../common/TextArea/TextArea"; import { cn } from "../../../utils/bem"; import { wrapArray } from "../../../utils/utilities"; import { RegionItem } from "./RegionItem"; @@ -91,10 +92,10 @@ const RelationItem: FC<{ relation: any }> = observer(({ relation }) => {
- {(hovered || relation.showMeta) && relation.hasRelations && ( + {(hovered || relation.showMeta) && (