Jump to content
  • [Beta 11] IMG .ipsUserPhoto--fluid containers fail to display


    Description of the Bug

    After updating to Invision Community 5 Beta 11, user profile images inside .ipsUserPhoto--fluid containers fail to display. The image exists in the HTML and loads correctly when accessed directly via URL, but it is not rendered visibly on the page due to CSS conflicts with .ipsUserPhoto--fluid.

    Removing the .ipsUserPhoto--fluid class from the <a> container allows the image to appear as expected.

    Steps to Reproduce

    1. Update Invision Community to Beta 11.
    2. Navigate to a user profile or any section where .ipsUserPhoto--fluid is used.
    3. Inspect the <a class="ipsUserPhoto ipsUserPhoto--fluid"> container.
    4. Notice that the <img> tag is present in the HTML but not displayed.
    5. Remove .ipsUserPhoto--fluid from the <a> element via Developer Tools (F12).
    6. The image now appears correctly.

    Expected Behavior

    User profile images should be visible within the .ipsUserPhoto--fluid container without requiring manual intervention.

    Impact

    • Affects visibility of profile pictures across the forum.
    • Users may believe their profile image is missing or not uploaded.
    • Breaks UI consistency for avatars and profile photos in posts, messages, and notifications.
    • No JavaScript errors or CSP issues detected—this appears to be a CSS-related issue.

    Environment

    • Platform: Linux (Ubuntu 24.04)
    • Web Server: nGinX
    • PHP Version: 8.2
    • Database: MySQL 8.0
    • Browser: Microsoft Edge

    Attachments

    Screenshots:

    Before:

    image.png.4e37ec97dac9f3569266b550e80f5641.png

    After:
    image.png.a18ccc4953f8609e68076581e5fb4c3c.png

    CSS Inspection Logs

    • .ipsUserPhoto--fluid has CSS properties that appear to hide or incorrectly position the image.
    • Manual overrides via CSS or JavaScript resolve the issue, confirming it is not a caching or permissions problem.

    Temporary Workarounds

    Until this issue is resolved, affected users can either of these fixes, but you do not need to do both:

    1. Remove .ipsUserPhoto--fluid dynamically via JavaScript:
      document.querySelectorAll(".ipsUserPhoto--fluid").forEach(el => el.classList.remove("ipsUserPhoto--fluid"));

       

    2. Apply a CSS fix:
      .ipsUserPhoto--fluid img {
          display: block !important;
          visibility: visible !important;
          opacity: 1 !important;
          width: auto !important;
          height: auto !important;
          max-width: 100% !important;
          max-height: 100% !important;
          position: relative !important;
      }

       

     

    Additional Notes

    • This issue was not present in Beta 10.
    • Possible related change:

      #3181: Moved interface resources to interface/static to allow for better CDN cache rules


    User Feedback

    Recommended Comments

    Marc

    Posted

    Changed Status to Duplicate

    Thank you. We've just taken a look at this, and its fixed on another bug report for the next release


×
×
  • Create New...