feat: The translation box can be set to adaptive height
This commit is contained in:
@@ -115,7 +115,15 @@ export default function TranBox({
|
||||
text,
|
||||
setText,
|
||||
setShowBox,
|
||||
tranboxSetting: { enDict, enSug, apiSlugs, fromLang, toLang, toLang2 },
|
||||
tranboxSetting: {
|
||||
enDict,
|
||||
enSug,
|
||||
apiSlugs,
|
||||
fromLang,
|
||||
toLang,
|
||||
toLang2,
|
||||
autoHeight,
|
||||
},
|
||||
transApis,
|
||||
boxSize,
|
||||
setBoxSize,
|
||||
@@ -141,6 +149,7 @@ export default function TranBox({
|
||||
size={boxSize}
|
||||
setSize={setBoxSize}
|
||||
setPosition={setBoxPosition}
|
||||
autoHeight={autoHeight}
|
||||
header={
|
||||
<Header
|
||||
setShowBox={setShowBox}
|
||||
|
||||
Reference in New Issue
Block a user