🔥 Feat: internalize watermark option appendTo

This commit is contained in:
Cell
2023-12-13 17:16:52 +08:00
parent 95612e33f5
commit 4b2ff9e773
4 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -18,8 +18,7 @@
align-items: flex-start;
justify-content: center;
padding-inline: 1rem;
// TODO remove watermark from container
// gap: 0.5rem;
gap: 0.5rem;
&.container-reverse {
flex-direction: row-reverse;
+1 -1
View File
@@ -891,7 +891,7 @@ class FixIt {
this.config.watermark?.enable &&
new Watermark({
content: this.config.watermark.content || `${document.querySelector('footer .fixit-icon')?.outerHTML ?? ''} FixIt Theme`,
appendTo: this.config.watermark.appendto || '.wrapper>main',
appendTo: '.widgets',
opacity: this.config.watermark.opacity,
width: this.config.watermark.width,
height: this.config.watermark.height,
+1 -1
Submodule docs updated: 7535704203...8094ae3a58
-2
View File
@@ -731,8 +731,6 @@ enableEmoji = true
content = ""
# watermark's transparency
opacity = 0.1
# parent of watermark's container
appendTo = ".wrapper>main"
# watermark's width. unit: px
width = 150
# watermark's height. unit: px