diff --git a/CHANGELOG.md b/CHANGELOG.md index 59604a7b..5b21fbe4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## [8.1.2] - 2022-10-06 + +### 🐞 Fixes + +- [#435](https://github.com/estruyf/vscode-front-matter/issues/435): Fix required fields text color +- [#436](https://github.com/estruyf/vscode-front-matter/issues/436): Fix inserting image/video snippets without defined fields + ## [8.1.1] - 2022-09-23 ### 🐞 Fixes diff --git a/package-lock.json b/package-lock.json index 8271f84a..60faf700 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-front-matter-beta", - "version": "8.1.1", + "version": "8.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-front-matter-beta", - "version": "8.1.1", + "version": "8.1.2", "license": "MIT", "dependencies": { "node-fetch": "^2.6.7" diff --git a/package.json b/package.json index fce189f3..37045c54 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Front Matter", "description": "Front Matter is a CMS that runs within Visual Studio Code. It gives you the power and control of a full-blown CMS while also providing you the flexibility and speed of the static site generator of your choice like: Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...", "icon": "assets/frontmatter-teal-128x128.png", - "version": "8.1.1", + "version": "8.1.2", "preview": false, "publisher": "eliostruyf", "galleryBanner": { diff --git a/src/dashboardWebView/components/Media/Item.tsx b/src/dashboardWebView/components/Media/Item.tsx index 46e7bc38..0483141e 100644 --- a/src/dashboardWebView/components/Media/Item.tsx +++ b/src/dashboardWebView/components/Media/Item.tsx @@ -158,7 +158,7 @@ export const Item: React.FunctionComponent = ({media}: React.PropsWi mediaHeight: media?.dimensions?.height?.toString() || "", }; - if (snippet.fields.length === 0) { + if (!snippet.fields || snippet.fields.length === 0) { setShowSnippetFormDialog(false); setMediaData(undefined); diff --git a/src/panelWebView/styles.css b/src/panelWebView/styles.css index 70703a7d..efdfd560 100644 --- a/src/panelWebView/styles.css +++ b/src/panelWebView/styles.css @@ -348,6 +348,7 @@ } .metadata_field__required__message { + color: var(--vscode-inputValidation-errorBorder); padding-top: .5rem; font-size: .9rem; margin-left: .5rem;