Skip to content

Commit

Permalink
Update to Printer Friendly Bio
Browse files Browse the repository at this point in the history
  • Loading branch information
shogenapps committed Dec 10, 2023
1 parent f21c036 commit 418922b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/profileClasses.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export function ensureProfileClasses() {
$(".x-memories, .x-content > br:last-child").addClass("x-memories").prevUntil("*:not(br)").addClass("x-memories"); // memories are usually preceded by a couple of line breaks, sometimes present at the end of content even if the memories block is missing

// mark elements related to certain sections (including header, lists, and any other root elements) up until the next section *** dependent on x-memories being set
$(".x-content a[name].x-root-section").each(function () {
$(".x-content a[name].x-root-section, .x-content a[name].x-section").each(function () {
let className = "section-" + this.name.replace(/[\W_]+/g, "").toLowerCase();
if (className == "section-sources") {
className += " x-sources";
Expand Down
2 changes: 2 additions & 0 deletions src/features/printerfriendly/printerfriendly.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
.print-content-only.no-print-research-notes .section-researchnotes,
.print-content-only.no-print-dna .section-dna,
.print-content-only.no-print-dna *[class*="section-dna"],
.print-content-only.no-print-dna .section-dnaconfirmations,
.print-content-only.no-print-dna *[class*="section-dnaconfirmations"],
.print-content-only.no-print-sources .section-sources,
.print-content-only.no-print-sources sup.reference,
.print-content-only .star,
Expand Down
5 changes: 4 additions & 1 deletion src/features/printerfriendly/printerfriendly.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ async function initPrinterFriendly() {
.print-content-only body{
font-size: ${options.fontSize}pt;
}
.print-content-only ul li.x-src {
.print-content-only li {
line-height: 1em !important;
}
.print-content-only * {
max-width:100%;
}
}
</style>`
);
Expand Down

0 comments on commit 418922b

Please sign in to comment.