From 56c4f83e09f16a52ff0307290fd1de13c036a320 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 10 Jul 2026 21:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=9F=9F=E5=A3=B3=E5=B1=82?= =?UTF-8?q?=E6=94=B6=E5=8F=A3=EF=BC=9A=E5=88=A0=E9=99=A4=20uh/uc/profile?= =?UTF-8?q?=20=E5=AD=A4=E5=84=BF=20partial=20=E5=B9=B6=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E4=BE=A7=E6=A0=8F=E4=B8=8E=E5=AE=BD=E5=BA=A6=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 清理减层后已无引用的草稿 partial,让公开主页/作者页侧栏接入 content-layout__aside,并修正 content-shell 与 aksrt-profile 同节点时的宽度选择器。 --- assets/css/routes/profile/layout.css | 6 +- assets/css/routes/user-center/part-1.css | 5 +- author.php | 2 +- templates/pages/page-user-home.php | 2 +- templates/parts/profile/part-1.php | 400 ------------------ templates/parts/profile/part-2.php | 403 ------------------- templates/parts/profile/part-3.php | 403 ------------------- templates/parts/profile/part-4.php | 222 ---------- templates/parts/user-center/README.md | 10 +- templates/parts/user-center/uc-comments.php | 81 ---- templates/parts/user-center/uc-credits.php | 59 --- templates/parts/user-center/uc-dashboard.php | 98 ----- templates/parts/user-center/uc-favorites.php | 75 ---- templates/parts/user-center/uc-posts.php | 71 ---- templates/parts/user-home/README.md | 10 +- templates/parts/user-home/uh-comments.php | 76 ---- templates/parts/user-home/uh-hero.php | 66 --- templates/parts/user-home/uh-posts.php | 55 --- templates/parts/user-home/uh-sidebar.php | 106 ----- 19 files changed, 28 insertions(+), 2122 deletions(-) delete mode 100644 templates/parts/profile/part-1.php delete mode 100644 templates/parts/profile/part-2.php delete mode 100644 templates/parts/profile/part-3.php delete mode 100644 templates/parts/profile/part-4.php delete mode 100644 templates/parts/user-center/uc-comments.php delete mode 100644 templates/parts/user-center/uc-credits.php delete mode 100644 templates/parts/user-center/uc-dashboard.php delete mode 100644 templates/parts/user-center/uc-favorites.php delete mode 100644 templates/parts/user-center/uc-posts.php delete mode 100644 templates/parts/user-home/uh-comments.php delete mode 100644 templates/parts/user-home/uh-hero.php delete mode 100644 templates/parts/user-home/uh-posts.php delete mode 100644 templates/parts/user-home/uh-sidebar.php diff --git a/assets/css/routes/profile/layout.css b/assets/css/routes/profile/layout.css index daacaed8..2e42f6c0 100644 --- a/assets/css/routes/profile/layout.css +++ b/assets/css/routes/profile/layout.css @@ -54,8 +54,10 @@ 100% { opacity: 0; transform: translateY(8px) scale(0.95); } } -/* 用户主页 / 用户中心统一使用站点内容宽度,避免旧 page/dashboard 容器收窄 */ -.aksrt-profile .content-shell { +/* 用户主页 / 用户中心统一使用站点内容宽度,避免旧 page/dashboard 容器收窄。 + * main 自身同时带 content-shell + aksrt-profile,不能写成 .aksrt-profile .content-shell。 */ +.aksrt-profile.content-shell, +.content-shell.aksrt-profile { width: 100%; max-width: var(--container, 1440px); } diff --git a/assets/css/routes/user-center/part-1.css b/assets/css/routes/user-center/part-1.css index e3788e15..ccc8ca77 100644 --- a/assets/css/routes/user-center/part-1.css +++ b/assets/css/routes/user-center/part-1.css @@ -6,7 +6,10 @@ */ /* ==================== 用户中心容器 ==================== */ -.aksrt-user-center .content-shell { +/* main 自身同时带 content-shell + aksrt-profile;宽度选择器应对准同一节点。 */ +.aksrt-user-center .content-shell, +.aksrt-profile.content-shell, +.content-shell.aksrt-profile { max-width: var(--container, 1440px); width: 100%; margin: 0 auto; diff --git a/author.php b/author.php index fe6519f4..31f76e9d 100644 --- a/author.php +++ b/author.php @@ -114,7 +114,7 @@ require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php'; -