Skip to content

Raise the ordinal suffix in the certificate preview - #310

Merged
vikrantwiz02 merged 1 commit into
FusionIIIT:acad-mainfrom
vikrantwiz02:acad-certificate-preview-ordinal
Sep 2, 2026
Merged

Raise the ordinal suffix in the certificate preview#310
vikrantwiz02 merged 1 commit into
FusionIIIT:acad-mainfrom
vikrantwiz02:acad-certificate-preview-ordinal

Conversation

@vikrantwiz02

Copy link
Copy Markdown
Member

The PDF now sets the year and semester suffixes as superscripts (FusionIIIT/Fusion#1980), so the on-screen preview showing 4th Year on the baseline no longer matched what prints.

ordinalWithSuperscript() splits an ordinal into digits and suffix and renders the suffix in a <sup>. A value that is not a plain ordinal — empty, null, or anything unexpected — is returned unchanged rather than mangled.

Applies to both the year and the semester in the certificate body. The student summary card on the left keeps plain text; it is interface chrome rather than part of the document.

429 tests passing, eslint and prettier clean, production build clean.

The preview showed 4th Year on the baseline while the PDF now sets the
suffix as a superscript, so the two no longer matched. The preview
splits the ordinal the same way and renders the suffix in a sup element;
anything that is not a plain ordinal is passed through untouched.
@vikrantwiz02
vikrantwiz02 merged commit d3989dd into FusionIIIT:acad-main Sep 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant