diff --git a/CHANGELOG.md b/CHANGELOG.md index 1539dada..2df514b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ ### ⚡️ Optimizations +- [#584](https://github.com/estruyf/vscode-front-matter/issues/584): - Ignore type field in content-type validation + ### 🐞 Fixes - [#564](https://github.com/estruyf/vscode-front-matter/issues/564): Fix to only pass strings to the taxonomy dashboard diff --git a/src/panelWebView/components/ContentType/ContentTypeValidator.tsx b/src/panelWebView/components/ContentType/ContentTypeValidator.tsx index 75836900..2036ada6 100644 --- a/src/panelWebView/components/ContentType/ContentTypeValidator.tsx +++ b/src/panelWebView/components/ContentType/ContentTypeValidator.tsx @@ -12,7 +12,7 @@ export interface IContentTypeValidatorProps { metadata: IMetadata; } -const fieldsToIgnore = [`filePath`, `articleDetails`, `slug`, `keywords`]; +const fieldsToIgnore = [`filePath`, `articleDetails`, `slug`, `keywords`, `type`]; export const ContentTypeValidator: React.FunctionComponent = ({ fields, diff --git a/src/panelWebView/styles.css b/src/panelWebView/styles.css index c9a583b6..09d6d1f2 100644 --- a/src/panelWebView/styles.css +++ b/src/panelWebView/styles.css @@ -291,7 +291,7 @@ button { .metadata_field__label { display: flex; align-items: center; - justify-content: space-between; + /* justify-content: space-between; */ margin-bottom: 0.5rem; div {