fix: avoid conflicts of same classname on some websites

This commit is contained in:
josc146
2023-03-18 23:54:57 +08:00
parent 90a19df56e
commit 8793fa5fde
5 changed files with 27 additions and 24 deletions
+7 -4
View File
@@ -84,8 +84,11 @@ function FloatingToolbar(props) {
onStop={dragEvent.onStop}
position={virtualPosition}
>
<div className="gpt-selection-window" style={{ width: windowSize[0] * 0.4 + 'px' }}>
<div className="chat-gpt-container">
<div
className="chatgptbox-selection-window"
style={{ width: windowSize[0] * 0.4 + 'px' }}
>
<div className="chatgptbox-container">
<ConversationCard
session={props.session}
question={prompt}
@@ -112,7 +115,7 @@ function FloatingToolbar(props) {
tools.push(
cloneElement(toolConfig.icon, {
size: 20,
className: 'gpt-selection-toolbar-button',
className: 'chatgptbox-selection-toolbar-button',
title: toolConfig.label,
onClick: async () => {
setPrompt(await toolConfig.genPrompt(selection))
@@ -125,7 +128,7 @@ function FloatingToolbar(props) {
return (
<div data-theme={config.themeMode}>
<div className="gpt-selection-toolbar">
<div className="chatgptbox-selection-toolbar">
<img src={logo} width="24" height="24" style="user-select:none;" />
{tools}
</div>