Watermark for no screenshotting

This commit is contained in:
2026-06-23 22:30:16 +08:00
parent a527bb1b58
commit fc8297fd8f
2 changed files with 19 additions and 0 deletions

View File

@@ -15,6 +15,20 @@
opacity: 0.65;
}
body::after {
content: '';
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
background-image: url('images/watermark.svg');
background-repeat: repeat;
}
body.root-dark-mode::after {
filter: invert(1);
}
.black-outline {
text-shadow: /* also change .flow-item-row-with-prompt:hover::before */
-1px -1px 0 rgba(0, 0, 0, 0.6),

5
src/images/watermark.svg Normal file
View File

@@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="140" viewBox="0 0 240 140">
<g transform="translate(120 70) rotate(-45)">
<text x="0" y="0" text-anchor="middle" dominant-baseline="middle" font-size="48" fill="rgba(0,0,0,0.016)" font-family="sans-serif">请勿截屏</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 305 B