diff --git a/src/components/Type.vue b/src/components/Type.vue index e168db96..b7a02d9b 100644 --- a/src/components/Type.vue +++ b/src/components/Type.vue @@ -79,14 +79,6 @@ function next() { } else { store.current.index++ - // var msg = new SpeechSynthesisUtterance(); - // // msg.text = store.word.name - // msg.text = 'Hawaii wildfires burn historic town of Lahaina to the ground' - // msg.rate = 0.8; - // msg.pitch = 1; - // msg.lang = 'en-US'; - // window.speechSynthesis.speak(msg); - console.log('这个词完了') } if ([DictType.custom, DictType.inner].includes(store.current.dictType) && store.skipWordNames.includes(store.word.name)) { diff --git a/src/components/TypeArticle.vue b/src/components/TypeArticle.vue index 65b413ac..d992350d 100644 --- a/src/components/TypeArticle.vue +++ b/src/components/TypeArticle.vue @@ -1,36 +1,127 @@ @@ -47,7 +138,21 @@ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace; letter-spacing: 0rem; color: gray; + white-space: pre-line; + span { + //background: red; + //margin-right: 50rem; + } + + .word { + margin-right: 10rem; + } + } + + .input { + position: fixed; + left: 100vw; } } \ No newline at end of file