diff --git a/admin-frontend-vue/src/pages/jd/JdCategorySidebar.vue b/admin-frontend-vue/src/pages/jd/JdCategorySidebar.vue index 647c7eb2c..dcc3aa83e 100644 --- a/admin-frontend-vue/src/pages/jd/JdCategorySidebar.vue +++ b/admin-frontend-vue/src/pages/jd/JdCategorySidebar.vue @@ -234,8 +234,21 @@ function submitCreate(): void { - +
+
+ + +
+ +

{{ editable ? '本组暂无分类,先新建一个' : '本组暂无分类' }}

- -
- - -
-
@@ -276,11 +277,16 @@ function submitCreate(): void { border: 1px solid #e4e7ed; border-radius: 8px; overflow: hidden; - align-self: flex-start; + /* 左右高度对齐(2026-11-21 用户口径):侧栏外框随主面板拉满(页面容器已改 stretch), + 自身转纵向 flex——Tab 行固定、滚动区吃剩余高度,第三张截图红框那截空白带消失。 */ + display: flex; + flex-direction: column; + align-self: stretch; } .jd-sidebar-tabs { display: flex; + flex-shrink: 0; border-bottom: 1px solid #e4e7ed; } @@ -303,11 +309,21 @@ function submitCreate(): void { .jd-sidebar-body { display: flex; flex-direction: column; - max-height: 640px; + /* 等高对齐下的滚动区:放弃 640px 上限(上限会让宽屏侧栏短于主面板=又不对齐), + flex 吃满侧栏剩余高度,树/分类超出时内部滚动。窄屏(≤980px)侧栏整行摆放时 + 恢复上限,防树全展开把整页拉长(断点与页面装配层一致)。 */ + flex: 1 1 auto; + min-height: 0; overflow-y: auto; padding: 6px; } +@media (max-width: 980px) { + .jd-sidebar-body { + max-height: 480px; + } +} + .jd-side-row { display: flex; align-items: center; @@ -403,9 +419,9 @@ function submitCreate(): void { .jd-side-create { display: flex; gap: 6px; - margin-top: 8px; + /* 置顶档(2026-11-21 换位):贴 Tab 行下方,分隔虚线随位置挪到「分类管理」与列表之间。 */ + margin-top: 4px; padding: 6px 4px; - border-top: 1px dashed #e4e7ed; } .jd-side-create input { @@ -433,10 +449,12 @@ function submitCreate(): void { } .jd-side-manage { - margin-top: 8px; + margin-top: 0; + margin-bottom: 4px; padding: 6px 8px; border: none; - border-top: 1px dashed #e4e7ed; + /* 置顶档:虚线分隔「控制块 ↔ 分类列表」。 */ + border-bottom: 1px dashed #e4e7ed; background: transparent; color: #606266; font-size: 13px; diff --git a/admin-frontend-vue/src/pages/jd/JdDatabasePage.vue b/admin-frontend-vue/src/pages/jd/JdDatabasePage.vue index f5b12e257..29aba2117 100644 --- a/admin-frontend-vue/src/pages/jd/JdDatabasePage.vue +++ b/admin-frontend-vue/src/pages/jd/JdDatabasePage.vue @@ -434,11 +434,10 @@ onMounted(async () => { @manage-categories="openManage" /> +
-
-

京东数据库

-
-
@@ -500,12 +499,22 @@ onMounted(async () => { - +
+ -