fix(svg): scope SVG CSS rules strictly to catalog image paths (/image/catalog/), removing artificial theme class overrides

This commit is contained in:
nertyog 2026-08-13 19:28:48 +03:00
parent c24b8d2ba8
commit ea4cba3194
2 changed files with 0 additions and 8 deletions

View File

@ -373,14 +373,6 @@ a.img-thumbnail img, a.thumbnail img {
' height: ' . $thumb_height . 'px !important;' . "\n" . ' height: ' . $thumb_height . 'px !important;' . "\n" .
' object-fit: contain !important;' . "\n" . ' object-fit: contain !important;' . "\n" .
'}' . "\n" . '}' . "\n" .
'img[src*="catalog/language/"], img.lang, .language-select img, .pr-dropdown-box img {' . "\n" .
' max-width: none !important;' . "\n" .
' max-height: none !important;' . "\n" .
' flex-shrink: 0 !important;' . "\n" .
'}' . "\n" .
'.pr-dropdown-button-check {' . "\n" .
' flex-shrink: 0 !important;' . "\n" .
'}' . "\n" .
'</style>'; '</style>';
$output = str_ireplace('</head>', $svg_style . '</head>', $output); $output = str_ireplace('</head>', $svg_style . '</head>', $output);
} }