Skip to content

Commit 58090d4

Browse files
committed
improve style conflicts (#724, #378)
1 parent 4e7410f commit 58090d4

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

src/components/ConversationCard/index.jsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -334,24 +334,26 @@ function ConversationCard(props) {
334334
}}
335335
>
336336
{props.closeable ? (
337-
<XLg
337+
<span
338338
className="gpt-util-icon"
339339
title={t('Close the Window')}
340-
size={16}
341340
onClick={() => {
342341
port.disconnect()
343342
if (props.onClose) props.onClose()
344343
}}
345-
/>
344+
>
345+
<XLg size={16} />
346+
</span>
346347
) : props.dockable ? (
347-
<Pin
348+
<span
348349
className="gpt-util-icon"
349350
title={t('Pin the Window')}
350-
size={16}
351351
onClick={() => {
352352
if (props.onDock) props.onDock()
353353
}}
354-
/>
354+
>
355+
<Pin size={16} />
356+
</span>
355357
) : (
356358
<img src={logo} style="user-select:none;width:20px;height:20px;" />
357359
)}
@@ -412,10 +414,9 @@ function ConversationCard(props) {
412414
<LinkExternalIcon size={16} />
413415
</a>
414416
)}
415-
<WindowDesktop
417+
<span
416418
className="gpt-util-icon"
417419
title={t('Float the Window')}
418-
size={16}
419420
onClick={() => {
420421
const position = { x: window.innerWidth / 2 - 300, y: window.innerHeight / 2 - 200 }
421422
const toolbarContainer = createElementAtPosition(position.x, position.y)
@@ -431,7 +432,9 @@ function ConversationCard(props) {
431432
toolbarContainer,
432433
)
433434
}}
434-
/>
435+
>
436+
<WindowDesktop size={16} />
437+
</span>
435438
<DeleteButton
436439
size={16}
437440
text={t('Clear Conversation')}

src/content-script/styles.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,12 @@
12511251
cursor: pointer;
12521252
align-items: center;
12531253
z-index: 0;
1254+
1255+
svg {
1256+
z-index: 0;
1257+
color: var(--font-color);
1258+
background-color: var(--theme-color);
1259+
}
12541260
}
12551261

12561262
.normal-button {
@@ -1431,6 +1437,7 @@
14311437
background-color: var(--theme-color);
14321438
color: var(--toolbar-color);
14331439
cursor: pointer;
1440+
z-index: 2147483647;
14341441
}
14351442

14361443
.chatgptbox-selection-toolbar-button:hover {

0 commit comments

Comments
 (0)