From b702b4b69e4ef3d5ec40f73a59db4809b59a8746 Mon Sep 17 00:00:00 2001 From: pavlov346346-source Date: Wed, 16 Sep 2026 10:41:10 +0300 Subject: [PATCH] fix: remove static category cards from cream-elegance cover MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They were hardcoded labels (Рыбные закуски / Мясные закуски / Для вегетарианцев / Мини-салаты) with a generic "Собрано под ваше событие" caption that didn't reflect the actual order — confusing and requested to be removed. The freed space now goes to a bigger 3x2 photo grid of the order's real items instead of leaving a gap. Co-Authored-By: Claude Sonnet 5 --- public/core/signature-offer-pdf-v18.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/public/core/signature-offer-pdf-v18.js b/public/core/signature-offer-pdf-v18.js index fd85013..6109236 100644 --- a/public/core/signature-offer-pdf-v18.js +++ b/public/core/signature-offer-pdf-v18.js @@ -110,12 +110,9 @@ if(hero)coverImage(ctx,hero,500,150,446,600,28); text(ctx,'МЕНЮ',W/2,795,W,26,{font:`600 24px ${f.display}`,color:p.deep,align:'center',maxLines:1}); line(ctx,M,814,410,814,p.line,1);line(ctx,590,814,W-M,814,p.line,1); - const cats=[['Рыбные закуски','🐟'],['Мясные закуски','🥩'],['Для вегетарианцев','🌿'],['Мини-салаты','🥗']]; - const colW=(W-2*M-14)/2; - cats.forEach((c,i)=>{const col=i%2,row=Math.floor(i/2),xx=M+col*(colW+14),yy=845+row*88;roundRect(ctx,xx,yy,colW,76,16,p.paper,p.line);iconCircle(ctx,xx+40,yy+38,20,c[1],{fill:p.deep,stroke:null,size:22});text(ctx,c[0],xx+72,yy+21,colW-90,18,{font:`600 14px ${f.display}`,color:p.ink,maxLines:1});text(ctx,'Собрано под ваше событие',xx+72,yy+44,colW-90,14,{font:`500 11px ${f.label}`,color:p.muted,maxLines:1})}); - await photoGridSquare(ctx,s,p,M,1035,W-2*M,100,6,1,{numbered:false,fonts:f}); - statCards(ctx,s,p,M,1150,565,100,[[Math.round(classicBoxCount(s))||0,'КОРОБОК'],[(s.items||[]).length,'ПОЗИЦИЙ']],{dark:false,fonts:f}); - priceBand(ctx,s,p,640,1150,306,100,{dark:false,fonts:f}); + await photoGridSquare(ctx,s,p,M,850,W-2*M,300,3,2,{numbered:false,fonts:f}); + statCards(ctx,s,p,M,1170,565,100,[[Math.round(classicBoxCount(s))||0,'КОРОБОК'],[(s.items||[]).length,'ПОЗИЦИЙ']],{dark:false,fonts:f}); + priceBand(ctx,s,p,640,1170,306,100,{dark:false,fonts:f}); }else if(id==='neon-menu'){ ctx.save();roundRect(ctx,20,20,W-40,H-40,0,null,p.accent,1.4);ctx.restore(); logoOrBrand(ctx,logo,p,{x:M,y:52,dark:true,fonts:f},s.brandName);