This commit is contained in:
josc146
2024-03-23 00:10:26 +08:00
parent db35e05864
commit dba68e7eee
2 changed files with 4 additions and 11 deletions
+2 -9
View File
@@ -1,4 +1,3 @@
import Browser from 'webextension-polyfill'
import { cloneElement, useCallback, useEffect, useState } from 'react' import { cloneElement, useCallback, useEffect, useState } from 'react'
import ConversationCard from '../ConversationCard' import ConversationCard from '../ConversationCard'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
@@ -9,7 +8,7 @@ import { useClampWindowSize } from '../../hooks/use-clamp-window-size'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { useConfig } from '../../hooks/use-config.mjs' import { useConfig } from '../../hooks/use-config.mjs'
const logo = Browser.runtime.getURL('logo.png') // const logo = Browser.runtime.getURL('logo.png')
function FloatingToolbar(props) { function FloatingToolbar(props) {
const { t } = useTranslation() const { t } = useTranslation()
@@ -140,13 +139,7 @@ function FloatingToolbar(props) {
return ( return (
<div data-theme={config.themeMode}> <div data-theme={config.themeMode}>
<div className="chatgptbox-selection-toolbar"> <div className="chatgptbox-selection-toolbar">{tools}</div>
<img
src={logo}
style="user-select:none;width:24px;height:24px;background:rgba(0,0,0,0);filter:none;"
/>
{tools}
</div>
</div> </div>
) )
} }
+2 -2
View File
@@ -1408,7 +1408,7 @@
border-radius: 15px; border-radius: 15px;
padding: 2px; padding: 2px;
background-color: #ffffff; background-color: #ffffff;
box-shadow: 4px 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
} }
.chatgptbox-selection-toolbar-button { .chatgptbox-selection-toolbar-button {
@@ -1428,5 +1428,5 @@
height: auto; height: auto;
border-radius: 8px; border-radius: 8px;
background-color: var(--theme-color); background-color: var(--theme-color);
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2); box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
} }