You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few items we should preserve on the inspector, like linking to the attachment view of an image. Not sure how many of these we want to consider.
Also, we want to find a way to improve the cropping of thumbnails somehow. The current arbitrary height images isn't the most visually pleasing. Perhaps a soft-crop using object-fit.
AFAIK, the edit button doesn't work in the demo gallery because the demo content doesn't refer to any attachments in the media library. The images are just hard-coded. So since there are no attachment IDs, there is nothing to find in the Edit Gallery frame. A way to fix this would be to construct the gallery dynamically out of a couple random images in the media library, but that would depend on there being images to begin with and also to hope they would look good in a gallery.
As of right now the gallery modals require a fair amount of data to be stored, including the thumbnail images to display properly on edit. There is issue #1986 to address the but then will require an attachment id # for it to work properly, which I'm not sure will work with demo content since it probably can't be hard-coded
Since we know for a fact that the demo content will go away at some point, it doesn't seem worth it to jump through hoops to make sure it works perfectly in every situation. In fact you could argue that a "fix" would be to not show the gallery at all — perhaps we could show a placeholder instead?
Activity
jasmussen commentedon Jun 26, 2017
Also, we want to find a way to improve the cropping of thumbnails somehow. The current arbitrary height images isn't the most visually pleasing. Perhaps a soft-crop using
object-fit.Edit: Ah, I see you have #1449 for that.
westonruter commentedon Jul 9, 2017
Whatever options are chosen, they should align with the Gallery widget that is now in development (and vice versa): xwp/wp-core-media-widgets#120
jasmussen commentedon Jul 26, 2017
For reference, these are the options in the current gallery:
By the way @mkaz it looks like in master, this button...
is broken ...
... but only on the demo content. Is that because it's demo content, or is there a deeper underlying issue?
westonruter commentedon Jul 28, 2017
AFAIK, the edit button doesn't work in the demo gallery because the demo content doesn't refer to any attachments in the media library. The images are just hard-coded. So since there are no attachment IDs, there is nothing to find in the Edit Gallery frame. A way to fix this would be to construct the gallery dynamically out of a couple random images in the media library, but that would depend on there being images to begin with and also to hope they would look good in a gallery.
mkaz commentedon Jul 31, 2017
As of right now the gallery modals require a fair amount of data to be stored, including the thumbnail images to display properly on edit. There is issue #1986 to address the but then will require an attachment id # for it to work properly, which I'm not sure will work with demo content since it probably can't be hard-coded
jasmussen commentedon Aug 1, 2017
Since we know for a fact that the demo content will go away at some point, it doesn't seem worth it to jump through hoops to make sure it works perfectly in every situation. In fact you could argue that a "fix" would be to not show the gallery at all — perhaps we could show a placeholder instead?
mtias commentedon Aug 1, 2017
I think being able to have galleries with media that is not in your library is still a good thing.
jasmussen commentedon Aug 1, 2017
Ah, I missed that bit. Yeah absolutely.
mtias commentedon Aug 3, 2017
That said, definitely not something to prioritize.
mtias commentedon Aug 4, 2017
Let's close this one as we have issues for adding the "link to" option and the thumbnail size: #1450