fix(StudyDetailPage): 移除topWrapper高度计算中的冗余偏移量
在`StudyDetailPage.vue`中,`topWrapper`的高度计算中包含了不必要的30px偏移量,导致布局不准确。移除该偏移量以修复布局问题。
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -385,7 +385,7 @@ onMounted(async () => { | ... | @@ -385,7 +385,7 @@ onMounted(async () => { |
| 385 | const topWrapper = document.querySelector('.top-wrapper'); | 385 | const topWrapper = document.querySelector('.top-wrapper'); |
| 386 | const bottomWrapper = document.querySelector('.bottom-wrapper'); | 386 | const bottomWrapper = document.querySelector('.bottom-wrapper'); |
| 387 | if (topWrapper) { | 387 | if (topWrapper) { |
| 388 | - topWrapperHeight.value = topWrapper.clientHeight + 30 + 'px'; | 388 | + topWrapperHeight.value = topWrapper.clientHeight + 'px'; |
| 389 | } | 389 | } |
| 390 | if (bottomWrapper) { | 390 | if (bottomWrapper) { |
| 391 | bottomWrapperHeight.value = bottomWrapper.clientHeight + 'px'; | 391 | bottomWrapperHeight.value = bottomWrapper.clientHeight + 'px'; | ... | ... |
-
Please register or login to post a comment