mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-06 17:02:54 +02:00
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -348,6 +348,7 @@
|
||||
}
|
||||
|
||||
.metadata_field__required__message {
|
||||
color: var(--vscode-inputValidation-errorBorder);
|
||||
padding-top: .5rem;
|
||||
font-size: .9rem;
|
||||
margin-left: .5rem;
|
||||
|
||||
Reference in New Issue
Block a user