feat(ui): modals close only via Esc/X/cancel; standard 3:1 form cover processing

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-07 15:23:14 +03:30
co-authored by Cursor
parent f5b6a47f3c
commit 2f3646d085
19 changed files with 366 additions and 117 deletions
@@ -33,7 +33,10 @@ export class PublicLeadFormsController {
) {
const row = await this.leadFormsService.getByToken(token);
if (!row?.coverStorageKey) throw new NotFoundException('کاور پیدا نشد');
res.set({ 'Content-Type': 'image/jpeg', 'Cache-Control': 'public, max-age=3600' });
res.set({
'Content-Type': this.leadFormsService.coverContentType(row.coverStorageKey),
'Cache-Control': 'public, max-age=3600',
});
return new StreamableFile(this.files.openReadStream(row.coverStorageKey));
}