Skip to content

Commit ac4d1d1

Browse files
fix: narrow the icon-cap rule to filename _110x110 so banner content images render at natural width
My previous .page-body a > img:only-child rule was too broad -- it also squashed wide content banners on /community (Benefits, Responsibilities, Expert Feedback / 4-step) down to 110px. Use a filename-pattern match instead so only the explicitly icon-sized PNGs (for_users_110x110, citing_us_110x110, etc.) get the thumbnail cap.
1 parent 76d496d commit ac4d1d1

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

projects/website-angular/src/app/page/page.component.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
height: auto;
55
}
66

7-
// Link-wrapped images on MDX landing pages are icon thumbnails
8-
// (e.g. the For Users / For Developers / Citing us modules on
9-
// /documentation). The source PNGs are ~459x459 even when their
10-
// filename advertises 110x110, so the default max-width: 100%
11-
// lets them dominate the page. Cap link-only image children at a
12-
// sensible thumbnail size and centre them; legitimately wide
13-
// content images (no surrounding link) keep the original behaviour.
14-
::ng-deep a > img:only-child {
7+
// Module-icon thumbnails on the landing pages (e.g. the For Users /
8+
// For Developers / Citing us modules on /documentation) are authored
9+
// with `_110x110` baked into the filename even though the PNG bytes
10+
// are ~459x459, so without this rule they dominate the page. Match
11+
// on that filename hint so other link-wrapped content images (the
12+
// wide Benefits / Responsibilities / collaborate banners on
13+
// /community, etc.) keep their natural sizing.
14+
::ng-deep img[src*="_110x110"] {
1515
display: block;
1616
max-width: 110px;
1717
max-height: 110px;

0 commit comments

Comments
 (0)