Skip to content

Commit 224eb1a

Browse files
committed
fix: styles are overwritten on some websites (#88)
1 parent c1129f9 commit 224eb1a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/components/ConversationCard/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function ConversationCard(props) {
196196
}}
197197
/>
198198
) : (
199-
<img src={logo} width="20" height="20" style="margin:5px 15px 0px;user-select:none;" />
199+
<img src={logo} style="margin:5px 15px 0px;user-select:none;width:20px;height:20px;" />
200200
)}
201201
{props.draggable ? (
202202
<div className="dragbar" />
@@ -225,7 +225,7 @@ function ConversationCard(props) {
225225
<span
226226
title="Save Conversation"
227227
className="gpt-util-icon"
228-
style="margin:15px 15px 10px;"
228+
style="margin:15px;"
229229
onClick={() => {
230230
let output = ''
231231
session.conversationRecords.forEach((data) => {

src/components/FloatingToolbar/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function FloatingToolbar(props) {
143143
return (
144144
<div data-theme={config.themeMode}>
145145
<div className="chatgptbox-selection-toolbar">
146-
<img src={logo} width="24" height="24" style="user-select:none;" />
146+
<img src={logo} style="user-select:none;width:24px;height:24px;" />
147147
{tools}
148148
</div>
149149
</div>

src/content-script/styles.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
.chatgptbox-container * {
4646
font-family: 'Cairo', sans-serif;
47+
font-size: 14px;
4748
}
4849

4950
.chatgptbox-container {
@@ -153,6 +154,7 @@
153154
align-items: center;
154155
margin-bottom: 5px;
155156
color: var(--font-color);
157+
height: 50px;
156158

157159
p {
158160
font-weight: bold;

0 commit comments

Comments
 (0)