Skip to content

fix(xplat): prevent oversized rendering of images#247

Closed
Zneeky wants to merge 4 commits into
masterfrom
aahmedov/fix-oversized-image-rendering
Closed

fix(xplat): prevent oversized rendering of images#247
Zneeky wants to merge 4 commits into
masterfrom
aahmedov/fix-oversized-image-rendering

Conversation

@Zneeky
Copy link
Copy Markdown
Contributor

@Zneeky Zneeky commented May 28, 2026

Closes #245

Summary

  • The shared igniteui-astro-components global rule
    .igd-main-content__markdown img { width: 100%; object-fit: cover; }
    stretches every image inside the article column to full width and
    applies object-fit: cover. For portrait or small-width screenshots
    this produces enormous renders — e.g. the 378×597 Blazor card image
    becomes a ~1420px-tall tower.
  • Adds style="width:auto;" on the four Blazor card <Image> sites
    so they render at intrinsic size while keeping responsive
    max-width:100% from the global rule.
  • Adds object-fit:initial; to the existing inline style on the
    nodejs icon <Image> tags across four getting-started / nextjs-usage
    pages so the icon isn't subject to the global crop behavior.

Zneeky added 4 commits May 28, 2026 10:48
The shared design system applies width:100% to every <img> inside
.igd-main-content__markdown, which stretches portrait/small images
to full content-column width and recomputes height from the intrinsic
ratio - rendering the 378x597 Blazor card screenshot as a ~1420px tall
tower. Adds an inline width:auto override on the four affected sites
and a top-level docs/IMAGE_SIZING.md explaining the pattern for future
contributors.

Closes #245
Mirror the EN-side width:auto inline override on the four JP equivalents
so the Blazor card screenshot renders at intrinsic size on the Japanese
documentation as well.
…ages

The 236x206 wc-project screenshot (web-components getting-started) and
the 626x1107 layout_mode screenshot (chart data legend / tooltip pages)
both hit the global width:100% rule and render way larger than their
intrinsic size. Adds the same inline width:auto override on every EN/JP
instance across xplat and angular.
@Zneeky Zneeky requested a review from dobromirts May 28, 2026 10:23
@dobromirts
Copy link
Copy Markdown
Contributor

Closing in favour of #251 , which is adding the styles globally and intodusing separate component for the getting started buttons

@dobromirts dobromirts closed this May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Blazor] Large images in Getting Started With Ignite UI for Blazor

2 participants