|
@@ -851,7 +851,16 @@
|
|
|
<div
|
|
|
ref="wordcard"
|
|
|
class="NNPE-wordDetail"
|
|
|
- :style="{ left: left + 'px' }"
|
|
|
+ :style="{
|
|
|
+ marginLeft:
|
|
|
+ word.detail.new_word.length === 1 ||
|
|
|
+ word.detail.new_word.length === 2
|
|
|
+ ? '-152px'
|
|
|
+ : word.detail.new_word.length === 3 ||
|
|
|
+ word.detail.new_word.length === 4
|
|
|
+ ? '-216px'
|
|
|
+ : '-280px'
|
|
|
+ }"
|
|
|
>
|
|
|
<Wordcard
|
|
|
:word="word"
|
|
@@ -1471,7 +1480,7 @@ export default {
|
|
|
// if (left - this.bodyLeft > this.contentWidth / 2) {
|
|
|
// _this.left = left - width + 10;
|
|
|
// } else {
|
|
|
- _this.left = left - width / 2;
|
|
|
+ _this.left = 0 - width / 2;
|
|
|
//}
|
|
|
},
|
|
|
changeWordCard(isShow) {
|