Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions news/180.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add sizes attribute to allowed picture variants
[MrTango]
4 changes: 4 additions & 0 deletions src/plone/base/interfaces/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,9 @@ class IImagingSchema(Interface):
"media": {
"type": "string",
},
"sizes": {
"type": "string",
},
"additionalScales": {
"type": "array",
},
Expand Down Expand Up @@ -1770,6 +1773,7 @@ class IImagingSchema(Interface):
{
"scale": "preview",
"additionalScales": ["large", "larger"],
"sizes": "(min-width: 576px) 400px, (min-width: 768px) 600px, 98vw",
},
],
},
Expand Down