Skip to content

When there's an invalid pic in the gallery there's no way to remove it #25347

Closed
wordpress-mobile/gutenberg-mobile
#2623

Description

@pinarol

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

Activity

  1. added
    Mobile App - i.e. Android or iOS
    on Sep 15, 2020
  2. pinarol commented on Sep 15, 2020

    @pinarol
    ContributorAuthor

    @geriux can you take a look at this one?

  3. geriux commented on Sep 16, 2020

    @geriux
    Member

    @geriux can you take a look at this one?

    Of course, I'll work on it!

  4. self-assigned this
    on Sep 16, 2020
  5. added
    [Status] In Progress
    on Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Mobile App - i.e. Android or iOS[Status] In Progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions