feat(footer): 功能页页脚固定底部 + 修掉功能页多余滚动条
问题:上一版页脚改为流内元素后,功能页出现莫名滚动条。实测根因=页脚在流内占位 (margin-top40+高41=81px),把'内容刚好一屏'的功能页(848/900)顶出27px。实测/hash-text 溢出27px、隐藏页脚后=0,页脚是唯一成因。 改法:BaseLayout 加 fixedFooter 开关,功能页(tool.layout.vue -> <BaseLayout fixed-footer>) 页脚 position:fixed 固定视口底部;首页等仍流内最底部。 - fixed 态不占文档流 -> /hash-text 等多余滚动条消失(27->0) - 功能页内容底部补 padding-bottom:56px,避免滚到底时压住最后一块内容(余量25px起) 对齐修正:固定页脚默认以视口居中(720),首页静态页脚居中于内容区(840,侧栏240px), 切换页面横向跳动120px -> .content 加 transform:translateZ(0) 建立包含块,两边偏差均为0 验证(20个功能页):fixed/padB56/距底12/居中偏差0/单行/滚到底无遮挡(余25-477px)全通过; 受控页试用浮条在顶部与页脚无冲突;非功能页(/,/about,/pricing)仍 static
This commit is contained in:
1 parent
9e0c38f23b
commit
7aeb8b74ef
4 files changed
+45
-5
No files matched your search
@@ -98,7 +98,7 @@ function retryAiHelp() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<BaseLayout>
|
||||
<BaseLayout fixed-footer>
|
||||
<div class="tool-layout" :class="{ wide: isWide }">
|
||||
<div class="tool-header">
|
||||
<div flex flex-nowrap items-center gap-12px>
|
||||
|
||||
Reference in new issue
Block a user