diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index f8011875..d8fabf88 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -15,16 +15,18 @@ --color-scrollbar: rgb(147, 173, 227); --color-sub-gray: #c0bfbf; - --practice-wrapper-translateX: 1px; --article-width: 50vw; --article-toolbar-width: 50rem; + --article-panel-width: 20rem; + --article-panel-margin-left: calc(50% + var(--article-width) / 2 + 1rem); + --toolbar-width: 50rem; --panel-width: 24rem; + --space: 1rem; --stat-gap: 1rem; --shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px; - --panel-margin-left: calc(50% + var(--toolbar-width) / 2 + 1rem); - --article-panel-margin-left: calc(50% + var(--article-width) / 2 + 1rem); + --word-panel-margin-left: calc(50% + var(--toolbar-width) / 2 + 1rem); --anim-time: 0.5s; --color-input-color: black; @@ -61,7 +63,7 @@ --color-notice-bg: rgb(247, 247, 247); - //修改element-ui的进度条底色 + //修改的进度条底色 --color-progress-bar: #d1d5df !important; } @@ -118,31 +120,25 @@ html.dark { @media (max-width: 1720px) { :root { --toolbar-width: 50vw; - --article-width: 50vw; --panel-width: 20vw; --space: 0.5rem; - } - .footer { - .bottom { - padding: .5rem !important; - } + + --article-toolbar-width: 45rem; + --article-panel-width: 18rem; } } @media (max-width: 1366px) { :root { --panel-width: 20vw; - --article-width: 50vw; --toolbar-width: 50vw; --stat-gap: 0.5rem; --space: 0.3rem; + + --article-toolbar-width: 40rem; + --article-panel-width: 16rem; } - .footer { - .bottom { - padding: .5rem !important; - } - } } .anim { diff --git a/src/directives/loading.tsx b/src/directives/loading.tsx index a373b1a5..f26bb434 100644 --- a/src/directives/loading.tsx +++ b/src/directives/loading.tsx @@ -30,6 +30,7 @@ const LoadingComponent = { // 自定义指令 export default { mounted(el, binding) { + console.log('el',) const position = getComputedStyle(el).position if (position === 'static' || !position) { el.style.position = 'relative' // 保证 loading 居中 diff --git a/src/pages/pc/article/StudyArticle.vue b/src/pages/pc/article/StudyArticle.vue index 14d91fe9..826735d9 100644 --- a/src/pages/pc/article/StudyArticle.vue +++ b/src/pages/pc/article/StudyArticle.vue @@ -22,6 +22,7 @@ import Tooltip from "@/pages/pc/components/base/Tooltip.vue"; import ConflictNotice from "@/pages/pc/components/ConflictNotice.vue"; import {useRoute, useRouter} from "vue-router"; import book_list from "@/assets/book-list.json"; +import PracticeLayout from "@/pages/pc/components/PracticeLayout.vue"; const store = useBaseStore() const settingStore = useSettingStore() @@ -274,8 +275,10 @@ const {playSentenceAudio} = usePlaySentenceAudio() diff --git a/src/pages/pc/article/components/TypingArticle.vue b/src/pages/pc/article/components/TypingArticle.vue index 31284c0e..0649b438 100644 --- a/src/pages/pc/article/components/TypingArticle.vue +++ b/src/pages/pc/article/components/TypingArticle.vue @@ -482,15 +482,15 @@ let showQuestions = $ref(false) .typing-article { height: 100%; - width: 100%; overflow: auto; color: var(--color-article); + width: var(--article-width); font-size: 1.6rem; header { word-wrap: break-word; position: relative; - padding-top: 1rem; + padding-top: 3rem; .title { text-align: center; @@ -549,7 +549,7 @@ let showQuestions = $ref(false) } &.tall { - line-height: 2.6; + line-height: 2.4; } .section { @@ -589,7 +589,7 @@ let showQuestions = $ref(false) height: 100%; width: 100%; font-size: 1.2rem; - line-height: 3.5; + line-height: 3.2; letter-spacing: .2rem; font-family: var(--zh-article-family); font-weight: bold; diff --git a/src/pages/pc/components/Panel.vue b/src/pages/pc/components/Panel.vue index e628b312..3503e1b6 100644 --- a/src/pages/pc/components/Panel.vue +++ b/src/pages/pc/components/Panel.vue @@ -13,9 +13,11 @@ provide('tabIndex', computed(() => tabIndex))