Repository navigation
Closed
wordpress-mobile/gutenberg-mobile
#2623Labels
Mobile App - i.e. Android or iOSNative mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)[Status] In ProgressTracking issues with work in progress
Description
Describe the bug
When there's an invalid pic in the gallery there's no way to remove it.
To reproduce
Use the html provided:
<!-- wp:gallery {"ids":[2066,2068,1979,1880,1872],"columns":5,"imageCrop":false,"linkTo":"media"} -->
<figure class="wp-block-gallery columns-5"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><a href="https://pinarspremiumtestsite123443.files.wordpress.com/2020/08/img_4524.jpg"><img src="https://pinarspremiumtestsite123443.files.wordpress.com/2020/08/img_4524.jpg" data-id="2066" class="wp-image-2066"/></a></figure></li><li class="blocks-gallery-item"><figure><a href="https://pinarspremiumtestsite123443.files.wordpress.com/2020/08/img_4341.jpg"><img src="https://pinarspremiumtestsite123443.files.wordpress.com/2020/08/img_4341.jpg" data-id="2068" class="wp-image-2068"/></a></figure></li><li class="blocks-gallery-item"><figure><a href="https://pinarspremiumtestsite123443.files.wordpress.com/2020/06/img_4263.jpg"><img src="https://pinarspremiumtestsite123443.files.wordpress.com/2020/06/img_4263.jpg" data-id="1979" class="wp-image-1979"/></a></figure></li><li class="blocks-gallery-item"><figure><a href="https://pinarspremiumtestsite123443.files.wordpress.com/2020/05/pexels-photo-1444321.jpg"><img src="https://pinarspremiumtestsite123443.files.wordpress.com/2020/05/pexels-photo-1444321.jpg" data-id="1880" class="wp-image-1880"/></a></figure></li><li class="blocks-gallery-item"><figure><a href="https://pinarspremiumtestsite123443.files.wordpress.com/2020/05/pexels-photo-1643456.jpg"><img src="https://pinarspremiumtestsite123443.files.wordpress.com/2020/05/pexels-photo-1643456.jpg" data-id="1872" class="wp-image-1872"/></a></figure></li></ul></figure>
<!-- /wp:gallery -->
You'll see that there's no option to remove the invalid image:
Expected behavior
It should be possible to remove the invalid image. I think we can show the edit button but show only the remove option inside the action sheet.
Editor version (please complete the following information):
Detected when testing: wordpress-mobile/gutenberg-mobile#2614
Smartphone (please complete the following information):
- Device: iPhoneX
- OS: iOS13.7
Metadata
Metadata
Assignees
Labels
Mobile App - i.e. Android or iOSNative mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)[Status] In ProgressTracking issues with work in progress
Activity
pinarol commentedon Sep 15, 2020
@geriux can you take a look at this one?
geriux commentedon Sep 16, 2020
Of course, I'll work on it!