mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-07 09:23:00 +02:00
feat: Show slug in content relationship combobox option
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user