style(footer): 页脚改为底部居中单行横排;火箭恢复原始位置

- .footer: left0/right0 + text-align:center + white-space:nowrap,bottom12
- 两段文字合并为一行,中间 · 分隔(margin 0 8px, 55% 透明)
- 实测 centerOffsetPx=0(完美居中)、singleLine=true、距底12px
- 页脚不再占右下角 -> 火箭恢复 bottom 26px;文字右缘884 vs 火箭左缘1364,相距480px无冲突
- 保留链接 pointer-events:auto 可点、悬停变主题绿、滚动不跟随
This commit is contained in:
personal82555 committed 2026-10-15 10:12:29 +08:00
1 parent 8744e046c0
commit fc70d22929
2 files changed
+27 -12

No files matched your search

+9
View File
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. See [standa
## Version 2026.10.14-it-tools-pro
### 🦶 页脚改为底部居中单行横排
- **上一版**:`position: fixed` 贴**右下角**、两行竖排(`© 年份` / `🚀 链接` 上下叠放)
- **现在**:改为**单行横排、水平居中**贴住视口底部
- `.footer`:`left:0; right:0; text-align:center; white-space:nowrap`,`bottom: 12px`
- 两段文字合并为一行,中间用 `·` 分隔(`margin: 0 8px`,55% 透明度)
- 实测 `centerOffsetPx = 0`(完美居中)、`singleLine: true`、距底 12px
- **连带收尾**:页脚不再占据右下角,上一版为避让它而上移的「回到顶部」火箭**恢复原始位置**(`bottom 62px → 26px`);实测文字右缘 884、火箭左缘 1364,**相距 480px 无视觉冲突**,外层 `pointer-events: none` 也不影响点击穿透
- 保留:链接 `pointer-events: auto` 可点、悬停变主题绿;滚动不跟随
### 🤖 AI 客服去掉授权(免费引导功能)
- **改动**:
- 前端 `license.ts` 移除 `'/ai-chat'` → 受控功能 **14 → 13**,侧边栏「授权应用」随之 **14 → 13**
+18 -12
View File
@@ -157,14 +157,13 @@ onBeforeUnmount(() => {
</div>
<slot />
<!-- 右侧主屏最下方固定页脚 -->
<!-- 底部居中固定页脚(单行横排) -->
<div class="footer">
<div>© {{ new Date().getFullYear() }} IT-TOOLS-PRO</div>
<div>
<c-link target="_blank" rel="noopener" href="https://nav.88531.cn">
🚀 更多应用尽在 nav.88531.cn
</c-link>
</div>
<span>© {{ new Date().getFullYear() }} IT-TOOLS-PRO</span>
<span class="footer-sep">·</span>
<span>
<c-link target="_blank" rel="noopener" href="https://nav.88531.cn">🚀 更多应用尽在 nav.88531.cn</c-link>
</span>
</div>
<!-- 右下角回到顶部火箭 -->
@@ -185,11 +184,11 @@ onBeforeUnmount(() => {
// background-size: @size @size;
// }
// 右下角回到顶部火箭(上移到页脚之上,避免与固定页脚重叠)
// 右下角回到顶部火箭(页脚已改为底部居中,右下角不再冲突,恢复原始位置)
.back-top {
position: fixed;
right: 26px;
bottom: 62px;
bottom: 26px;
z-index: 400;
width: 50px;
height: 50px;
@@ -229,19 +228,26 @@ onBeforeUnmount(() => {
}
}
/* 右侧主屏最下方固定页脚:贴住视口右下角,滚动不跟随 */
/* 底部居中固定页脚:单行横排,贴住视口底部中线,滚动不跟随 */
.footer {
position: fixed;
right: 22px;
left: 0;
right: 0;
bottom: 12px;
z-index: 350;
text-align: right;
text-align: center;
color: #838587;
font-size: 12px;
line-height: 1.55;
white-space: nowrap; // 强制单行,不折行
pointer-events: none; // 不拦截下方内容点击,仅链接可点
user-select: none;
.footer-sep {
margin: 0 8px;
opacity: 0.55;
}
:deep(a) {
pointer-events: auto;
color: #838587;