wagtail-deprecated / wagtail-react-streamfield

Powerful field for inserting multiple blocks with nesting. (NO LONGER MAINTAINED - See Wagtail 2.13 Release Notes)
https://wagtail.github.io/react-streamfield/public/
BSD 3-Clause "New" or "Revised" License
74 stars 23 forks source link

No image thumbnails #14

Closed grasshoppermouse closed 5 years ago

grasshoppermouse commented 5 years ago

When I have a StreamField with an ImageChooserBlock, I get thumbnail previews when I'm adding new images. But when I later edit the page, there are no thumbnails for any image. This is particularly inconvenient for image carousels (ListBlock containing an ImageChooserBlock) because I can't figure out which image I need to change or delete. Thanks for any advice!

screen shot 2018-10-01 at 11 03 16 am

BertrandBordage commented 5 years ago

Could you confirm that you’re using Wagtail >= 2.2, wagtail-react-streamfield 0.8.6 with wagtail-react-streamfield before wagtail.images in INSTALLED_APPS?

grasshoppermouse commented 5 years ago

wagtail 2.2.2

Successfully installed wagtail-react-streamfield-0.8.6

INSTALLED_APPS = [

    'search',
    'department', # Delete this after transferring data
    'department2',
    'wagtail_react_streamfield',

    'wagtail.contrib.forms',
    'wagtail.contrib.redirects',
    'wagtail.contrib.styleguide',
    'wagtail.contrib.postgres_search',
    'wagtail.embeds',
    'wagtail.sites',
    'wagtail.users',
    'wagtail.snippets',
    'wagtail.documents',
    'wagtail.images',
    'wagtail.search',
    'wagtail.admin',
    'wagtail.core',

    'modelcluster',
    'taggit',
    'osm_field',
    'wagtailosm',
    'wagtailaccessibility',

    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.contenttypes',
]
BertrandBordage commented 5 years ago

I see you have a visual glitch next to the delete icon. Did you make sure the browser cache is cleared, using ctrl+F5 on non-Apple OSes?

grasshoppermouse commented 5 years ago

Did you make sure the browser cache is cleared

That did it. Thanks! The little square next to the delete icon is still there, though. I'm using Safari 12.0 on macOS 10.13.6.

On a side note, when do you anticipate this will be available for inlines?

BertrandBordage commented 5 years ago

@grasshoppermouse Great! About the little square, could you share the HTML source of that square please?

I’m planning to release the equivalent for inlines within two weeks.