Skip to content

Commit a19fa08

Browse files
authored
chore: explain removal of watermark in docs (CopilotKit#1641)
1 parent d4133e3 commit a19fa08

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

CopilotKit/packages/react-ui/src/css/window.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
font-size: 12px !important;
3333
padding: 3px 0 !important;
3434
color: rgb(214, 214, 214) !important;
35+
margin: 0 !important;
3536
}
3637

3738
.dark,

docs/components/react/copilotkit-css.tsx

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ html {
206206
}
207207
.copilotKitInputContainer {
208208
width: 100%;
209-
padding: 0 0 15px 0;
209+
padding: 0;
210210
background: var(--copilot-kit-background-color);
211211
border-bottom-left-radius: 0.75rem;
212212
border-bottom-right-radius: 0.75rem;
@@ -674,6 +674,26 @@ html {
674674
.sendButton:hover {
675675
border-radius: 5px;
676676
}
677+
678+
.poweredBy {
679+
visibility: visible !important;
680+
display: block !important;
681+
position: static !important;
682+
text-align: center !important;
683+
font-size: 12px !important;
684+
padding: 3px 0 !important;
685+
color: rgb(214, 214, 214) !important;
686+
margin: 0 !important;
687+
}
688+
689+
.dark,
690+
html.dark,
691+
body.dark,
692+
[data-theme="dark"],
693+
html[style*="color-scheme: dark"],
694+
body[style*="color-scheme: dark"] .poweredBy {
695+
color: rgb(69, 69, 69) !important;
696+
}
677697
`}
678698
</style>
679699
);
@@ -717,6 +737,10 @@ export const handleMouseMove = (e: any) => {
717737
tooltip.innerHTML =
718738
"<b>--copilot-kit-separator-color</b>: Input box border color.<br/><br/><b>--copilot-kit-muted-color</b>: Placeholder color.";
719739
return;
740+
} else if (element.classList.contains("poweredBy")) {
741+
tooltip.innerHTML =
742+
`The "Powered by CopilotKit" watermark is removed automatically for Copilot Cloud users`;
743+
return;
720744
}
721745
element = element.parentElement;
722746
}
@@ -820,6 +844,9 @@ export const InteractiveCSSInspector = () => {
820844
</button>
821845
</div>
822846
</div>
847+
<p className="poweredBy">
848+
Powered by CopilotKit
849+
</p>
823850
</div>
824851
</div>
825852
</div>

0 commit comments

Comments
 (0)