Merge branch 'main' into pr/RylanBot/1821

This commit is contained in:
tangly1024.com
2024-01-30 18:16:38 +08:00
30 changed files with 412 additions and 409 deletions

View File

@@ -6,8 +6,8 @@ const useAdjustStyle = () => {
* 避免 callout 含有图片时溢出撑开父容器
*/
const adjustCalloutImg = () => {
const callouts = document.querySelectorAll('.notion-callout-text');
callouts.forEach((callout) => {
const callOuts = document.querySelectorAll('.notion-callout-text');
callOuts.forEach((callout) => {
const images = callout.querySelectorAll('figure.notion-asset-wrapper.notion-asset-wrapper-image > div');
const calloutWidth = callout.offsetWidth;
images.forEach((container) => {