Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m34s
现象:图库 4 列排布时最右一列被窗口裁掉(用户截图)。 原因:renderGrid 用 wrap.clientWidth(面板全宽)当可用宽度,而实际滚动容器右侧还有滚动条与内边距, 列宽按全宽均分后总宽超出可视区,最右一列被裁。 改动(plugins/gallery/main.js): - 新增 usableW():沿 scrollerOf() 找到真正滚动的容器,取其 clientWidth 减去左右 padding 与 4px 余量 - renderGrid / measure 都改用 usableW(),并且每次都采用实测值(不再因为差值 ≤1 而沿旧值) - colW 改为 floor,避免四舍五入后 n 列总宽超出容器