-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into externallink
- Loading branch information
Showing
15 changed files
with
138 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove teaser styling tab inside grids since it's empty. @sneridagh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove the last dangling `aspect-ratio` handler from image block. @sneridagh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 13 additions & 21 deletions
34
packages/volto-light-theme/src/components/Blocks/Teaser/schema.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,22 @@ | ||
export const teaserSchemaEnhancer = ({ schema, formData, intl }) => { | ||
schema.properties.href.selectedItemAttrs.push('getRemoteUrl'); | ||
|
||
schema.properties.styles.schema.fieldsets[0].fields = [ | ||
...schema.properties.styles.schema.fieldsets[0].fields, | ||
'--image-aspect-ratio', | ||
]; | ||
|
||
schema.properties.styles.schema.properties['--image-aspect-ratio'] = { | ||
widget: 'select', | ||
title: 'Aspect Ratio', | ||
choices: [ | ||
['1', '1:1'], | ||
['16 / 9', '16/9'], | ||
], | ||
}; | ||
|
||
return schema; | ||
}; | ||
|
||
// Not sure why, but it was in the new one, check with blockModel3 | ||
// export const gridTeaserDisableStylingSchema = ({ schema, formData, intl }) => { | ||
// schema.fieldsets = schema.fieldsets.filter((item) => item.id !== 'styling'); | ||
// return schema; | ||
// }; | ||
export const gridTeaserDisableStylingSchema = ({ schema, formData, intl }) => { | ||
// Remove all the existing fields from the default schema | ||
schema.properties.styles.schema.fieldsets[0].fields = []; | ||
schema.fieldsets = schema.fieldsets.filter((item) => item.id !== 'styling'); | ||
return schema; | ||
}; | ||
|
||
export const gridTeaserDisableAlignHandlersSchema = ({ | ||
schema, | ||
formData, | ||
intl, | ||
}) => { | ||
schema.properties.styles.schema.fieldsets[0].fields = | ||
schema.properties.styles.schema.fieldsets[0].fields.filter( | ||
(item) => !['align'].includes(item), | ||
); | ||
return schema; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters