Skip to content

Commit

Permalink
Merge pull request #437 from estruyf/release/v8.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf authored Oct 6, 2022
2 parents eb99843 + 8d577ce commit cf2d170
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/dashboardWebView/components/Media/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const Item: React.FunctionComponent<IItemProps> = ({media}: React.PropsWi
mediaHeight: media?.dimensions?.height?.toString() || "",
};

if (snippet.fields.length === 0) {
if (!snippet.fields || snippet.fields.length === 0) {
setShowSnippetFormDialog(false);
setMediaData(undefined);

Expand Down
1 change: 1 addition & 0 deletions src/panelWebView/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@
}

.metadata_field__required__message {
color: var(--vscode-inputValidation-errorBorder);
padding-top: .5rem;
font-size: .9rem;
margin-left: .5rem;
Expand Down

0 comments on commit cf2d170

Please sign in to comment.