mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-09 15:09:02 +00:00
tweak: image alignment (center/left/right)
This commit is contained in:
parent
047b4cce7d
commit
4d8eec7399
@ -133,3 +133,10 @@
|
|||||||
right: 2px;
|
right: 2px;
|
||||||
bottom: -2px;
|
bottom: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.enhancer--tweak-img_alignment-left .notion-image-block {
|
||||||
|
align-self: start !important;
|
||||||
|
}
|
||||||
|
.enhancer--tweak-img_alignment-right .notion-image-block {
|
||||||
|
align-self: end !important;
|
||||||
|
}
|
||||||
|
@ -47,4 +47,9 @@ export default async function ({ web }, db) {
|
|||||||
document.body.classList.add(`enhancer--tweak-${tweak}`);
|
document.body.classList.add(`enhancer--tweak-${tweak}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const imgAlignment = await db.get(['tweak.img_alignment']);
|
||||||
|
if (imgAlignment !== 'center') {
|
||||||
|
document.body.classList.add(`enhancer--tweak-img_alignment-${imgAlignment}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -113,6 +113,12 @@
|
|||||||
"label": "quote block quotation marks",
|
"label": "quote block quotation marks",
|
||||||
"tooltip": "**wrap quote block content in large, decorative serif quotation marks**",
|
"tooltip": "**wrap quote block content in large, decorative serif quotation marks**",
|
||||||
"value": false
|
"value": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "select",
|
||||||
|
"key": "tweak.img_alignment",
|
||||||
|
"label": "image alignment",
|
||||||
|
"values": ["center", "left", "right"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user