feat: Show slug in content relationship combobox option

This commit is contained in:
Dennis Zoma
2024-10-07 08:38:22 +02:00
parent 788d0241fd
commit ba1cf95ffd
@@ -219,6 +219,7 @@ export const ContentTypeRelationshipField: React.FunctionComponent<IContentTypeR
value={getValue(choice, contentTypeValue)}
className={({ active }) => `py-[var(--input-padding-vertical)] px-[var(--input-padding-horizontal)] list-none cursor-pointer hover:text-[var(--vscode-button-foreground)] hover:bg-[var(--vscode-button-hoverBackground)] ${active ? "text-[var(--vscode-button-foreground)] bg-[var(--vscode-button-hoverBackground)] " : ""}`}>
{choice.title}
<div className='text-xs opacity-60 mt-0.5'>{choice.slug}</div>
</Combobox.Option>
))}