Changesets · Branches · Tags · Compare
| Changeset | fc2336f545ac48e00c3306b490103dd4019f7abc4db79634abade632c9c2da8a |
|---|---|
| Author | WaylandYang <145302500+WaylandYang@users.noreply.github.com> · 2026-08-31 21:11 +08:00 |
| Committer | GitHub <noreply@github.com> · 2026-08-31 21:11 +08:00 |
| Parents | 91e50a273f4d |
1 file changed
modified web/src/pages/Review.tsx +20 −11
| @@ -859,7 +859,10 @@ | ||
| 859 | 859 | return ( |
| 860 | 860 | <div className="h-full flex"> |
| 861 | 861 | {/* 左栏:队列分类 + 历史,各带实时计数(SSE 推动刷新) */} |
| 862 | - <aside className={`${RAIL_CLS} flex flex-col`}> | |
| 862 | + {/* `overflow-y-auto`:矮窗口下这一栏的内容比它高,而底部那条是「去别处办」 | |
| 863 | + 的出口——没有滚动它会被裁掉且够不着。`mt-auto` 只在有富余空间时把它 | |
| 864 | + 压到底,两者要一起给 */} | |
| 865 | + <aside className={`${RAIL_CLS} flex flex-col overflow-y-auto u-scroll`}> | |
| 863 | 866 | <RailHeader label={S.review.tabQueue} /> |
| 864 | 867 | <div className="px-2 space-y-0.5"> |
| 865 | 868 | <RailItem |
| @@ -886,16 +889,6 @@ | ||
| 886 | 889 | count={counts.lowconf} |
| 887 | 890 | onClick={() => select("lowconf")} |
| 888 | 891 | /> |
| 889 | - {/* 口径审批搬去了「数据映射」页:判断一条口径对不对要看得见表结构, | |
| 890 | - 而那在那一页。**计数留在这里**——收件箱该说「有几条等你」, | |
| 891 | - 但活要在有上下文的地方干 */} | |
| 892 | - <RailItem | |
| 893 | - active={false} | |
| 894 | - label={S.review.railMappings} | |
| 895 | - count={counts.mappings} | |
| 896 | - onClick={() => navigate({ to: "/mappings" })} | |
| 897 | - external | |
| 898 | - /> | |
| 899 | 892 | <RailItem |
| 900 | 893 | active={active === "violations"} |
| 901 | 894 | label={S.review.railViolations} |
| @@ -924,6 +917,22 @@ | ||
| 924 | 917 | onClick={() => select("merges")} |
| 925 | 918 | /> |
| 926 | 919 | </div> |
| 920 | + | |
| 921 | + {/* 数据映射:**两组都不属于,所以压在底部单独一条。** | |
| 922 | + 上面那七档问的都是「这条知识对不对」,而口径问的是「这个数怎么算」 | |
| 923 | + (0011 已经在数据层把它分出去了);下面那两档是本页办过的事的流水, | |
| 924 | + 而口径的决定从来不进 `review_history`(它只捞 review./fact./ | |
| 925 | + conflict./merge.,口径记的是 mapping.decided)。 | |
| 926 | + **计数留着**——收件箱该说「有几条等你」,但活在有上下文的那一页干 */} | |
| 927 | + <div className="mt-auto border-t border-white/5 px-2 py-2"> | |
| 928 | + <RailItem | |
| 929 | + active={false} | |
| 930 | + label={S.review.railMappings} | |
| 931 | + count={counts.mappings} | |
| 932 | + onClick={() => navigate({ to: "/mappings" })} | |
| 933 | + external | |
| 934 | + /> | |
| 935 | + </div> | |
| 927 | 936 | </aside> |
| 928 | 937 | |
| 929 | 938 | {/* 右侧:一次只显示选中的一类,单一分页 */} |