From a3f787ddaf71ccd50d8a0d074272d94002eaa3ad Mon Sep 17 00:00:00 2001 From: Victor_Jay Date: Sun, 31 May 2026 15:53:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20NAV=20=E6=B7=BB=E5=8A=A0=E6=8A=95?= =?UTF-8?q?=E7=A8=BF=E5=85=A5=E5=8F=A3=EF=BC=8C=E7=AC=94=E5=9B=BE=E6=A0=87?= =?UTF-8?q?+=E6=8A=95=E7=A8=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - nav.html: 帖子后添加笔图标+投稿链接(仅登录可见),跳转 /studio/write - posts/index.html: 移除独立的撰写帖子按钮 - common.css: 添加 .nav-contribute 样式,inline-flex + vertical-align: middle + line-height: 1 --- templates/MetaLab-2026/html/layout/nav.html | 4 ++++ templates/MetaLab-2026/html/posts/index.html | 3 --- templates/MetaLab-2026/static/css/common.css | 21 ++++++++++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/templates/MetaLab-2026/html/layout/nav.html b/templates/MetaLab-2026/html/layout/nav.html index fde401c..c7d9c4f 100644 --- a/templates/MetaLab-2026/html/layout/nav.html +++ b/templates/MetaLab-2026/html/layout/nav.html @@ -8,6 +8,10 @@
  • 首页
  • 帖子
  • {{if .IsLoggedIn}} +
  • + + 投稿 +
  • diff --git a/templates/MetaLab-2026/html/posts/index.html b/templates/MetaLab-2026/html/posts/index.html index abf438d..76a3c2a 100644 --- a/templates/MetaLab-2026/html/posts/index.html +++ b/templates/MetaLab-2026/html/posts/index.html @@ -6,9 +6,6 @@
    {{if .Error}} diff --git a/templates/MetaLab-2026/static/css/common.css b/templates/MetaLab-2026/static/css/common.css index 61fd4f4..6f981be 100644 --- a/templates/MetaLab-2026/static/css/common.css +++ b/templates/MetaLab-2026/static/css/common.css @@ -145,6 +145,27 @@ header { color: var(--color-secondary) !important; } +/* ---------- Nav Contribute ---------- */ +.nav-contribute { + display: inline-flex !important; + align-items: center; + vertical-align: middle; + line-height: 1; + color: var(--color-accent) !important; + font-weight: 600 !important; +} + +.nav-contribute .icon { + width: 16px; + height: 16px; + display: block; + margin-right: 4px; +} + +.nav-contribute:hover { + opacity: .8; +} + /* ---------- Nav Messages Bell ---------- */ .nav-messages { position: relative;