This commit is contained in:
Gabe Yuan
2023-10-25 11:20:05 +08:00
parent 83911b2164
commit 43f34fe6ed
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ function DictCont({ dictResult }) {
{dictResult.simple_means?.symbols?.map(({ ph_en, ph_am, parts }, idx) => (
<div key={idx}>
<div>{`英[${ph_en}] 美[${ph_am}]`}</div>
<ul>
<ul style={{ margin: "0.5em 0" }}>
{parts.map(({ part, means }, idx) => (
<li key={idx}>
{part ? `[${part}] ${means.join("; ")}` : means.join("; ")}

View File

@@ -9,10 +9,10 @@ export default function Slection({ tranboxSetting, transApis }) {
const [selectedText, setSelText] = useState("");
const [text, setText] = useState("");
const [position, setPosition] = useState({ x: 0, y: 0 });
const [boxSize, setBoxSize] = useState({ w: 600, h: 420 });
const [boxSize, setBoxSize] = useState({ w: 600, h: 400 });
const [boxPosition, setBoxPosition] = useState({
x: (window.innerWidth - 600) / 2,
y: (window.innerHeight - 420) / 2,
y: (window.innerHeight - 400) / 2,
});
function handleMouseup(e) {