We have what I believe is a regression bug in IE11 with Umami's recipe and article cards being vertically oversized. From memory, this issue might be caused by IE11 calculating the height of the flexbox item based on the non scaled size of the contained images.

Screenshot of Umami 8.6.1 from BrowserStack Windows 10, IE11, middle part of front page:

Umami's card layout broken in IE11

We'll need to fix and test all card displays on Home, Articles, Recipes, and Article and Recipe content types.

Comments

kjay created an issue. See original summary.

MaddieC’s picture

Assigned: Unassigned » MaddieC
hiway’s picture

StatusFileSize
new546 bytes

Hey, guys! I added a small patch to fix that issue. Please, review.

hiway’s picture

Status: Active » Needs review
Mike Berry’s picture

I have tested this patch in Chrome and Firefox. It worked fine.

hiway’s picture

@Mike Berry, sorry but the case here is the problem in IE11, so it should be tested with IE11.

pawandubey’s picture

@hiway

I reviewed the patch and its working fine in IE11 and also tested for the stability purpose in Firefox and Chrome browser and found no issues.

I have tested on the below pages:

  • Home
  • Articles
  • Recipes
  • Article and Recipe content types

Suggestion related to code:
This fix only require overflow: hidden; and not getting any impact related to width:100%; on the <div class="node__content"> tag, as by default the block element takes 100% width and also there is no overridden display style applied to it. So, my suggestion is to remove the width:100%; along with the comment.

I have just re-rolled the patch with the above suggestion and no impact in appearance except the code. Please review and test the same and let me know your feedback.

andrewmacpherson’s picture

@pawandubey - thanks for the updated patch. Can you provide an interdiff to show what's changed between patches #3 and #7?

pawandubey’s picture

StatusFileSize
new527 bytes

@andrewmacpherson

Please find the attached interdiff file as requested.

hiway’s picture

@pawandubey Thank you for your work.
About this note:

Suggestion related to code:
This fix only require overflow: hidden; and not getting any impact related to width:100%; on the <div class="node__content"> tag, as by default the block element takes 100% width and also there is no overridden display style applied to it. So, my suggestion is to remove the width:100%; along with the comment.

As I remember, when I've been working on this issue, I was need to add width:100%, because in the IE11 some images may have wrong width and height. May be I'm wrong, but that was the case why I leaved width:100% there. Thank you.

pawandubey’s picture

@hiway

Can you please review this patch at your end? As this is a minor change.

shaal’s picture

Status: Needs review » Reviewed & tested by the community

I have tested the patch using Chrome, Firefox, and IE11 the following pages:
(In multiple resolutions, from mobile width to full desktop width)

  • Home
  • Articles
  • Recipes
  • Article and Recipe content types

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 7: IE11-layout-issue-2999723-7.patch, failed testing. View results

hiway’s picture

StatusFileSize
new530 bytes

@pawandubey @shaal I reviewed this once again on my end. And created new patch which includes only overflow: hidden;, that's seems enough for now. I created new patch file against latest 8.7.x branch state as @pawandubey's patch failed tests.

hiway’s picture

Status: Needs work » Needs review
pawandubey’s picture

Status: Needs review » Reviewed & tested by the community

@hiway
Thanks for re-rolling this patch in latest version. We can again move this to RTBC.

lauriii’s picture

Status: Reviewed & tested by the community » Needs review
+++ b/core/profiles/demo_umami/themes/umami/css/components/content/card/card.css
@@ -44,3 +44,8 @@
+  overflow: hidden;

Could we use flex-shrink: 0; instead?

shaal’s picture

Yes! flex-shrink: 0; works perfect!

(Screenshots of IE11 through Browserstack)

Homepage
Umami's homepage in IE11

Recipes page
Umami's recipes page in IE11

volkswagenchick’s picture

Issue tags: +midcamp2019
pawandubey’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new990.42 KB
new934.89 KB

Patch#18 reviewed, tested and its working fine as per the attached screenshot.
Moving this to RTBC

kjay’s picture

StatusFileSize
new2.75 MB

+1 for RTBC. Tested on Windows 10 IE11 and Firefox/Safari/Chrome with same results as @pawandubey

  • lauriii committed 7a3b237 on 8.7.x
    Issue #2999723 by hiway, pawandubey, shaal, kjay, MaddieC, lauriii:...

  • lauriii committed 6a46637 on 8.6.x
    Issue #2999723 by hiway, pawandubey, shaal, kjay, MaddieC, lauriii:...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Confirmed manually with Chrome and IE 11 that the patch fixes the bug. Committed 7a3b237 and pushed to 8.7.x. Also cherry-picked to 8.6.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.