Adjust report layout for title, columns, and date format
Remove manual column reversal for RTL rendering and enforce LTR for footer date to fix display issues. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 5d0f535d-8066-49ff-a6bc-362e493b9c3d Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/Zh9QhRk Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -235,13 +235,11 @@ function buildMeetingRow(meeting: PdfMeeting, input: RenderPdfInput): string {
|
||||
const after = cellsLtr.slice(endIdx + 1);
|
||||
const merged: TableCell[] = [...before, mergedCell, ...after];
|
||||
|
||||
const cells = isRtl ? [...merged].reverse() : merged;
|
||||
return `<tr style="${bgStyle}">${renderCells(cells)}</tr>`;
|
||||
return `<tr style="${bgStyle}">${renderCells(merged)}</tr>`;
|
||||
}
|
||||
}
|
||||
|
||||
const cells = isRtl ? [...cellsLtr].reverse() : cellsLtr;
|
||||
return `<tr style="${bgStyle}">${renderCells(cells)}</tr>`;
|
||||
return `<tr style="${bgStyle}">${renderCells(cellsLtr)}</tr>`;
|
||||
}
|
||||
|
||||
export function buildScheduleHtml(input: RenderPdfInput): string {
|
||||
@@ -254,10 +252,8 @@ export function buildScheduleHtml(input: RenderPdfInput): string {
|
||||
const fontData = getFontBase64(input.font.fontFamily);
|
||||
const fontFaceName = "ScheduleFont";
|
||||
|
||||
const headerLabelsLtr = [input.labels.no, input.labels.meeting, input.labels.attendees, input.labels.time];
|
||||
const headerLabels = isRtl ? [...headerLabelsLtr].reverse() : headerLabelsLtr;
|
||||
const colWidthsLtr = ["8%", "30%", "42%", "20%"];
|
||||
const colWidths = isRtl ? [...colWidthsLtr].reverse() : colWidthsLtr;
|
||||
const headerLabels = [input.labels.no, input.labels.meeting, input.labels.attendees, input.labels.time];
|
||||
const colWidths = ["8%", "30%", "42%", "20%"];
|
||||
|
||||
const logoHtml = input.logo && input.logo.length > 0
|
||||
? `<img src="data:image/png;base64,${input.logo.toString("base64")}" style="height:50px;width:auto;" />`
|
||||
@@ -449,7 +445,7 @@ tr {
|
||||
|
||||
<div class="page-footer">
|
||||
<div class="recorded-by">${esc(input.labels.recordedBy)}</div>
|
||||
<div class="date-line">${esc(longDate)}</div>
|
||||
<div class="date-line" dir="ltr">${esc(longDate)}</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user