Skip to content

Commit

Permalink
fix: update ignored el for tid2png
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Feb 23, 2025
1 parent ae9c8d3 commit 9285865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion plugins/oeyoews/tiddlywiki-tid2png/tiddlers/export-png.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ const hideElements = [
'.neotw-subtitle-link',
'.neotw-avatar-link', // html2canvas 图片不会进行重定向, 导致加载失败
// '.tc-tags-wrapper'
// '.tc-subtitle',
'.tc-subtitle', // 效果不好,隐藏
'.recommend-tiddler-ai',
'.data-html2canvas-ignore', // 手动加上, 不起作用
'.tc-tiddler-title-icon',
];

const downloadPng = (href, title) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tags: $:/tags/ViewTemplate
<!-- <$text text={{{[<tid>get[ocreated]else[👉]]}}} /> -->
created <$view field="created" format="date" template="YYYY/0MM/0DD"/>
</$list>
<$list filter="[all[current]has[modified]]">
<$list filter="[all[current]has[modified]]" class="data-html2canvas-ignore">
<!-- <$text text={{{[<tid>get[omodified]else[📝]]}}} /> -->
<svg xmlns="http://www.w3.org/2000/svg" class="om-subtitle" width="16" height="16" viewBox="0 0 24 24"><path fill="#f55b50" d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1c-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29c-3.51 3.48-9.21 3.48-12.72 0c-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08l-.72 1.21L11 13V8z"/></svg>
modified <$neotw-dayjs time={{!!modified}} />
Expand Down

0 comments on commit 9285865

Please sign in to comment.