mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-11-13 22:11:42 +08:00
fix: 修复自定义导航栏吸顶布局偏移问题
1. 调整useCustomNavbarPlaceholder计算逻辑,仅H5平台额外添加10px偏移 2. 统一多个页面的吸顶导航样式,优化间距和文字大小 3. 为所有使用wd-sticky的页面添加正确的offsetTop参数 4. 重构文章列表页面代码结构,统一代码风格
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
import { useAppConfigStore } from '@/store/appConfig'
|
||||
import { DataLoadingStatusEnum, useDataLoadingStatus } from '@/hooks/useDataLoadingStatus'
|
||||
import { usePageScroll } from '@/hooks/usePageScroll'
|
||||
import { useCustomNavbarPlaceholder } from '@/hooks/useCustomNavbarPlaceholder'
|
||||
import { NeedPluginIds } from '@/hooks/usePluginAvailable'
|
||||
import { markdownConfig } from '@/config/markdown'
|
||||
import { debounce } from '@/utils/debounce'
|
||||
@@ -18,6 +19,7 @@
|
||||
},
|
||||
})
|
||||
|
||||
const { height: offsetTop } = useCustomNavbarPlaceholder()
|
||||
const { scrollY, updatePageScrollValue } = usePageScroll()
|
||||
const appConfigStore = useAppConfigStore()
|
||||
const calcAuditModeEnabled = computed(() => appConfigStore.auditModeEnabled)
|
||||
@@ -219,7 +221,7 @@
|
||||
|
||||
<template v-else>
|
||||
<!-- 顶部搜索框-->
|
||||
<wd-sticky>
|
||||
<wd-sticky :offset-top="offsetTop">
|
||||
<view class="w-screen box-border px-3 py-2">
|
||||
<view class="box-border uh-global-card-glass h-9 flex items-center gap-3 rounded-full pl-1 pr-3">
|
||||
<wd-icon name="search" size="16px" />
|
||||
|
||||
Reference in New Issue
Block a user