chore: upratanie lint upozorneni z uloh 11-18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9c2fb60fd6
commit
eb92d30dc3
3 files changed
+15
-8
No files matched your search
@@ -636,7 +636,7 @@ function renderModule(m: any, campaign: NewsletterCampaign): string {
|
||||
// fungujú aj v Gmaile, ktorý transform/position odstraňuje); čo presahuje rámik, sa oreže.
|
||||
// Outlook pre Windows (mso) pozadia nevie, dostane pôvodný <img>.
|
||||
// ---------------------------------------------------------------------------
|
||||
function hasImageAdjust(p: any): boolean {
|
||||
function hasImageAdjust(p: ProductItem): boolean {
|
||||
return (p.imageScale ?? 1) !== 1 || (p.imageOffsetX || 0) !== 0 || (p.imageOffsetY || 0) !== 0;
|
||||
}
|
||||
|
||||
@@ -646,7 +646,7 @@ function stripHtmlComments(html: string): string {
|
||||
}
|
||||
|
||||
// Štýl pozadia: fotka so základnou šírkou baseW, vycentrovaná na (centerX, centerY) rámika, plus zoom a posun
|
||||
function adjustedImageBgStyle(p: any, baseW: number, centerX: number, centerY: number): string {
|
||||
function adjustedImageBgStyle(p: ProductItem, baseW: number, centerX: number, centerY: number): string {
|
||||
const scale = p.imageScale ?? 1;
|
||||
const aspect = p.imageAspect || 1;
|
||||
const w = Math.round(baseW * scale);
|
||||
@@ -657,7 +657,7 @@ function adjustedImageBgStyle(p: any, baseW: number, centerX: number, centerY: n
|
||||
}
|
||||
|
||||
// Riadok s fotkou pod sebou (rozloženie "pod obrázkom" a vernostné karty)
|
||||
function renderStackedImageRow(p: any, imgHtml: string, cellStyle: string, cardWidth: number, maxImgW: number, alt: string): string {
|
||||
function renderStackedImageRow(p: ProductItem, imgHtml: string, cellStyle: string, cardWidth: number, maxImgW: number, alt: string): string {
|
||||
if (!hasImageAdjust(p)) {
|
||||
return `
|
||||
<tr height="160">
|
||||
|
||||
Reference in new issue
Block a user