Skip to content

💃 Free CC0 mannequin pose reference library for AI image tools (Nano Banana, ChatGPT, ComfyUI, Midjourney) — 250+ poses × 5 angles in line art, names in ja/zh/en/ko

feat(web): format row and vertical swipe in the enlarged view, five-up phone overview

wquguru05134ba885aa
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 376ca02b..f7b07e84 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,15 @@ the catalog schema.
## [Unreleased]
### Changed
+- Enlarged formats get a format row under the image: "All" (the overview) and each format of the set, one tap to switch;
+ it replaces the "← All formats" buttons. On phones, swiping up and down on the image steps through the same row and
+ flashes the format name. The phone overview shows all five images (three columns, the photo filling the third), and
+ the "This pose also has a photo" row is gone. Marquee tiles still outline their format, without the label.
+
+### Fixed
+- Phone lightbox cramped on first open: the box is 100dvh, about 180 px shorter while the address bar shows, and only the
+ image gave way. The meta line, angle row and format note are trimmed on phones so the image keeps its height.
+
- The lightbox opens on an overview of the angle: line art, clay, depth and normal in a 2×2 grid and the photo in a
column beside it (a row under it on phones). Click a tile to see that format alone, "← All formats" goes back. The
format bar is gone; sets with only line art open on the line art. `#P001-diag` is the overview, `-line` and the other
diff --git a/docs/DESIGN.md b/docs/DESIGN.md
index 5f8aa172..a5850616 100644
--- a/docs/DESIGN.md
+++ b/docs/DESIGN.md
@@ -35,15 +35,17 @@
深度 / 法线给 ControlNet、会带上人台体型;不写没验证过的效果);下载面板加「其他格式」两行。
新格式和线稿逐像素对齐,所以大图底部有「对照线稿」滑杆:线稿从左边擦进来,multiply 叠在图上,方便看合不合。
滑杆的指针事件不传给大图,避免拖动时触发左右滑换机位。下载文件名加 `_clay` / `_depth` / `_normal`,深链 `#P001-diag-clay`。
-- 灯箱默认总览(2026-11-01,方案 B1,取代原「对比」):点卡片打开大图,先看到这个机位的全部格式——线稿、白模、深度、法线排成 2×2
- (这套没有三种新格式时只有线稿一格),实拍单独一列(手机上变成网格下面一行「这套另有实拍」)。不再有格式切换条。点任意一格放大成
- 单张(原来的单格式视图,白模 / 深度 / 法线带「对照线稿」滑杆),左上角「← 全部格式」回到总览。某机位缺某种格式时那一格留位置、
- 显示缺图图标,网格不因换机位而错位。只有线稿的套直接打开线稿、没有返回按钮。总览的下载按钮下载线稿,其他格式在放大后下载。
+- 灯箱默认总览(2026-11-01,方案 B1,取代原「对比」):点卡片打开大图,先看到这个机位的全部格式。桌面:线稿、白模、深度、法线排成 2×2,
+ 实拍单独一列;手机(方案 M1):三列,第一行线稿、白模,第二行深度、法线,实拍占满第三列两行高,五张一屏。这套没有三种新格式时只有
+ 线稿一格(加实拍)。某机位缺某种格式时那一格留位置、显示缺图图标,网格不因换机位而错位。只有线稿的套直接打开线稿。
+ 点任意一格放大成单张;放大后图下方一排格式(方案 X1):「全部」+ 这套有的格式,每格一张当前机位的小图,点一下直接换,「全部」回总览,
+ 取代原来的「← 全部格式」按钮。白模 / 深度 / 法线带「对照线稿」滑杆,滑杆在图和格式排之间单独一条。手机上在大图上下滑也按这排的顺序换格式
+ (左右滑仍是换机位),换完在图中间闪一下格式名;「详情」展开时不响应上下滑。Esc 先回总览、再按一次才关闭;从总览进入单张会推一条浏览历史,
+ 浏览器后退 / 手机返回手势也先回总览,关闭时收回这条历史。总览的下载按钮下载线稿,其他格式在放大后下载。
深链:`#P001`、`#P001-diag` 是总览(旧的 `-compare` 也落到总览),`-line` / `-clay` / `-depth` / `-normal` / `-photo` 是单张。
- 网格卡片和首屏滚动方块都打开总览(实拍模式下打开实拍);从滚动方块进来时,方块那一种格式的格子描黑边,带「你点的这张」小标签,4 秒后标签淡出。
- 手机总览里隐藏左右箭头,左右滑动换机位。
- 返回总览(2026-11-01):桌面是大图左上角的黑色胶囊「← 全部格式 · 白模」(同时写明当前格式),机位计数挪到右上角;手机放在底栏最左的描边胶囊,
- 这时「详情」按钮让位。Esc 先回总览、再按一次才关闭;从总览点开的单张会推一条浏览历史,浏览器后退 / 手机返回手势也先回总览,关闭时把这条历史收回,不会重新打开。
+ 网格卡片和首屏滚动方块都打开总览(实拍模式下打开实拍);从滚动方块进来时,方块那一种格式的格子描黑边、名字加粗,不加文字标签。
+ 手机总览隐藏左右箭头。手机灯箱高度是 100dvh:浏览器地址栏露出时会矮约 180 px,所以手机上标题上方只留「ID · 分类」,机位缩略条压到 44 px 高,
+ 格式说明收进「详情」,让图在首次打开时就有足够高度(之前要滑一下、地址栏收起才正常)。
- 手机:默认三列网格(只留 ID + 名称一行、不显示圆点),右侧按钮切回两列,选择记在 localStorage。没有筛选面板(2026-10-29 去掉):
吸顶条里系列行随页面滚走,分类胶囊和机位 / 素材 / 视图开关留在顶部,各行横滑不换行。
- 手机首屏:连导航一屏放下(标题 32px、滚动方块只留一行、胶囊缩小),首屏底部露出「全部姿势」。
diff --git a/web/app.css b/web/app.css
index ffb3225f..46f1f467 100644
--- a/web/app.css
+++ b/web/app.css
@@ -599,50 +599,78 @@ dialog::backdrop { background: rgba(38, 34, 30, 0.55); }
.lb.ov-one .lb-ov { --h: min(calc((100cqh - 100px) / 2), calc((100cqw - 220px) / 1.75)); }
.lb-ov-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 12px; }
.lb.ov-one .lb-ov-grid { grid-template-columns: auto; }
-.lb-tile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 13px; text-align: left; }
+.lb-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 13px; text-align: left; }
button.lb-tile { cursor: zoom-in; }
.lb-stage .lb-tile img, .lb-tile .lb-tile-gap { display: block; width: calc(var(--h) * 0.75); height: var(--h); object-fit: cover; border-radius: 14px; background: #FFFFFF; mix-blend-mode: normal; box-sizing: border-box; }
.lb.ov-one .lb-stage .lb-tile img, .lb.ov-one .lb-tile .lb-tile-gap { width: calc((var(--h) * 2 + 32px) * 0.75); height: calc(var(--h) * 2 + 32px); }
.lb-stage .lb-tile.photo img, .lb-tile.photo .lb-tile-gap { width: calc(var(--h) + 16px); height: calc(var(--h) * 2 + 32px); }
button.lb-tile:hover img, button.lb-tile:focus-visible img { outline: 2px solid var(--ink); outline-offset: 2px; }
.lb-tile .lb-tile-gap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; background: rgba(255,255,255,0.45); color: var(--ink3); font-size: 12px; }
-.lb-ov-row { display: none; }
-.lb-back { position: absolute; left: 20px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px -8px rgba(24,24,27,0.4); }
-.lb-back[hidden] { display: none; }
-.lb.has-back .lb-counter { top: 62px; }
-@media (max-width: 860px) {
- /* Phones: the 2×2 grid fills the width; the photo becomes a row under it. */
- .lb-ov { --h: min(calc((100cqh - 120px) / 2), calc((100cqw - 32px) / 1.5)); }
- .lb:not(.ov-photo) .lb-ov { --h: min(calc((100cqh - 60px) / 2), calc((100cqw - 32px) / 1.5)); }
- .lb-ov > .lb-tile.photo { display: none; }
- .lb-ov-grid { gap: 8px; }
- .lb-ov-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; min-height: 48px; padding: 4px 14px 4px 4px; box-sizing: border-box; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
- .lb-stage .lb-ov-row img { width: 20px; height: 40px; object-fit: cover; border-radius: 4px; mix-blend-mode: normal; }
- .lb-ov-row svg { margin-left: auto; }
- .lb-back { left: 12px; top: 12px; height: 32px; font-size: 13px; }
- .lb.has-back .lb-counter { top: 52px; }
- /* The arrows would sit on the tiles; swiping the stage changes the angle. */
- .lb.compare .lb-nav { display: none; }
-}
-
-/* The way back from one format to the overview (2026-11-01): on desktop a black pill on the stage that also names the
- format in view, the angle counter moving to the right to make room; on phones it lives in the bottom bar with the
- other actions (thumb reach), and the details button steps aside while it is there. */
-.lb-back { height: 48px; padding: 0 20px 0 14px; gap: 8px; background: var(--btn); color: var(--btn-ink); font-size: 15px; box-shadow: 0 8px 22px -12px rgba(24,24,27,0.7); }
-.lb-back-fmt { font-weight: 500; opacity: 0.7; }
-.lb.has-back .lb-counter { top: 26px; left: auto; right: 20px; }
-.lb-back2[hidden] { display: none; }
-/* A marquee tile opens the overview with its own format outlined; the label fades, the outline stays. */
-.lb-tile { position: relative; }
+/* A marquee tile opens the overview with its own format outlined (no label: the outline says it). */
.lb-stage .lb-tile.hl img { outline: 3px solid var(--ink); outline-offset: 3px; }
.lb-tile.hl > span { color: var(--ink); font-weight: 700; }
-.lb-hl { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 12px; font-style: normal; font-weight: 700; animation: lb-hl 0.4s ease 4s forwards; }
-@keyframes lb-hl { to { opacity: 0; visibility: hidden; } }
+/* The old back buttons stay in the markup for the moment; the format row replaced them. */
+.lb-back, .lb-back2, .lb-back[hidden], .lb-back2[hidden] { display: none; }
+
+/* Format row (design X1): under an enlarged image, the overview ("All") and every format of the set, one tap each.
+ The stage keeps --fh free at the bottom so the image (and the wipe overlay, which must match it) sits above it. */
+.lb { --fh: 92px; }
+.lb.has-fmts .lb-stage { padding-bottom: var(--fh); }
+.lb.has-fmts .lb-stage .lb-wipe img { bottom: var(--fh); }
+.lb.has-fmts .lb-missing { bottom: calc(var(--fh) + 10px); }
+.lb.has-fmts .lb-wipebar { bottom: calc(var(--fh) + 4px); }
+/* Maps also carry the line-art slider: it gets its own band between the image and the format row. */
+.lb.map.has-fmts .lb-stage { padding-bottom: calc(var(--fh) + 54px); }
+.lb.map.has-fmts .lb-stage .lb-wipe img { bottom: calc(var(--fh) + 54px); }
+.lb-fmts { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; padding: 5px; border-radius: 18px; background: var(--card); box-shadow: 0 6px 18px -12px rgba(24,24,27,0.45); }
+.lb-fmts[hidden] { display: none; }
+.lb-fmts button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 56px; padding: 4px 6px; border: 2px solid transparent; border-radius: 12px; background: transparent; color: var(--ink3); font: inherit; font-size: 12px; cursor: pointer; }
+.lb-fmts button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 700; }
+.lb-fmts button:disabled { cursor: default; opacity: 0.45; }
+.lb-stage .lb-fmts img, .lb-fmts .fmt-all, .lb-fmts .fmt-gap { display: block; width: 34px; height: 44px; object-fit: cover; border-radius: 5px; background: var(--bg); mix-blend-mode: normal; box-sizing: border-box; }
+.lb-fmts .fmt-all { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 4px; background: transparent; }
+.lb-fmts .fmt-all i { border-radius: 2px; }
+.lb-fmts .fmt-all i:nth-child(1) { background: #FFFFFF; border: 1px solid #18181B; }
+.lb-fmts .fmt-all i:nth-child(2) { background: #BDBDBD; } .lb-fmts .fmt-all i:nth-child(3) { background: #2A2A2A; } .lb-fmts .fmt-all i:nth-child(4) { background: #8C8CF0; }
+.lb-fmts .fmt-gap { display: flex; align-items: center; justify-content: center; color: var(--ink4); }
+.lb-fmts .fmt-gap svg { width: 18px; height: 18px; }
+/* The format name shown for a moment after a vertical swipe on a phone. */
+.lb-flash { position: absolute; left: 50%; top: 42%; z-index: 3; transform: translate(-50%, -50%); padding: 10px 20px; border-radius: 999px; background: rgba(24,24,27,0.82); color: #FFFFFF; font-size: 16px; font-weight: 700; opacity: 0; pointer-events: none; }
+.lb-flash.on { animation: lb-flash 1.1s ease forwards; }
+@keyframes lb-flash { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
+
@media (max-width: 860px) {
- .lb-back { display: none; }
- .lb.has-back .lb-counter { top: 12px; left: 12px; right: auto; }
- .lb-pose .lb-back2 { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 48px; padding: 0 14px 0 10px; border: 1.5px solid var(--ink); background: var(--card); font-size: 14px; font-weight: 700; }
- .lb.has-back #lbMore { display: none; }
.lb-dls .pill { min-width: 0; overflow: hidden; }
.lb-dls .pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+ /* Room for the image while the browser's address bar is showing (the box is 100dvh, about 180 px shorter then):
+ a one-line meta, a shorter angle row and no format note; the note and the rest are under Details. */
+ .lb-mx { display: none; }
+ .lb-chips button span { aspect-ratio: auto; height: 44px; }
+ .lb:not(.more) #lbNote { display: none; }
+ /* Overview on phones (design M1): three columns, line art and clay over depth and normal, the photo filling the
+ third column's height. --cw is one column's width, capped so the two rows fit the stage height too. */
+ .lb-ov { --cw: min(calc((100cqw - 40px) / 3), calc((100cqh - 64px) * 0.375)); display: grid; grid-template-columns: repeat(3, var(--cw)); gap: 10px 8px; justify-content: center; }
+ .lb:not(.ov-photo) .lb-ov, .lb.ov-one .lb-ov { --cw: min(calc((100cqw - 32px) / 2), calc((100cqh - 64px) * 0.375)); grid-template-columns: repeat(2, var(--cw)); }
+ .lb-ov-grid { display: contents; }
+ .lb-tile { gap: 4px; font-size: 12px; }
+ .lb-stage .lb-tile img, .lb-tile .lb-tile-gap { width: var(--cw); height: calc(var(--cw) * 4 / 3); border-radius: 10px; }
+ .lb-tile.line { grid-column: 1; grid-row: 1; } .lb-tile.clay { grid-column: 2; grid-row: 1; }
+ .lb-tile.depth { grid-column: 1; grid-row: 2; } .lb-tile.normal { grid-column: 2; grid-row: 2; }
+ .lb-tile.photo { grid-column: 3; grid-row: 1 / span 2; }
+ .lb.ov-one .lb-tile.photo { grid-column: 2; grid-row: 1; }
+ .lb-stage .lb-tile.photo img, .lb-tile.photo .lb-tile-gap { width: var(--cw); height: calc(var(--cw) * 8 / 3 + 26px); }
+ .lb.ov-one .lb-stage .lb-tile img, .lb.ov-one .lb-tile .lb-tile-gap { width: var(--cw); height: calc(var(--cw) * 2); }
+ /* The arrows would sit on the tiles; swiping the stage changes the angle. */
+ .lb.compare .lb-nav { display: none; }
+ .lb { --fh: 70px; }
+ .lb.map.has-fmts .lb-stage { padding-bottom: calc(var(--fh) + 46px); }
+ .lb.map.has-fmts .lb-stage .lb-wipe img { bottom: calc(var(--fh) + 46px); }
+ .lb-wipebar { padding-top: 4px; padding-bottom: 4px; }
+ .lb-fmts { bottom: 8px; gap: 2px; padding: 3px; border-radius: 14px; max-width: calc(100% - 16px); }
+ .lb-fmts button { min-width: 0; flex: 1 1 0; padding: 3px 4px; font-size: 11px; }
+ .lb-stage .lb-fmts img, .lb-fmts .fmt-all, .lb-fmts .fmt-gap { width: 28px; height: 36px; }
+}
+@media (pointer: coarse) {
+ /* The vertical swipe needs the stage's own vertical gestures (not while Details is open and the panel scrolls). */
+ .lb:not(.more) .lb-stage { touch-action: none; }
}
diff --git a/web/app.js b/web/app.js
index 942b83d5..34ac9169 100644
--- a/web/app.js
+++ b/web/app.js
@@ -624,15 +624,29 @@
function overviewHtml(p, T) {
const v = LB.v;
const tile = (k, f) => f
- ? '<button type="button" class="lb-tile ' + k + (LB.hl === k ? ' hl' : '') + '" data-lbopen="' + k + '">' + (LB.hl === k ? '<em class="lb-hl">' + esc(T.youClicked) + '</em>' : '') + '<img src="' + src(k, 'w600', f) + '" alt="' + esc(p.id + ' ' + nameOf(p) + ' · ' + T.views[v] + ' · ' + T[k]) + '"><span>' + esc(T[k]) + '</span></button>'
+ ? '<button type="button" class="lb-tile ' + k + (LB.hl === k ? ' hl' : '') + '" data-lbopen="' + k + '">' + '<img src="' + src(k, 'w600', f) + '" alt="' + esc(p.id + ' ' + nameOf(p) + ' · ' + T.views[v] + ' · ' + T[k]) + '"><span>' + esc(T[k]) + '</span></button>'
: '<div class="lb-tile ' + k + ' gap"><span class="lb-tile-gap">' + gapIcon(k === 'photo' ? true : k === 'line' ? false : k) + '<b>' + esc(k === 'photo' ? T.gapPhoto : k === 'line' ? T.gapLine : T.gapMap(T[k])) + '</b></span><span>' + esc(T[k]) + '</span></div>';
const kinds = ['line'].concat(p.clay.some(Boolean) ? MAP_KINDS : []);
const hasPhoto = p.photo.some(Boolean);
$('lb').classList.toggle('ov-one', kinds.length === 1);
$('lb').classList.toggle('ov-photo', hasPhoto);
return '<div class="lb-ov"><div class="lb-ov-grid">' + kinds.map((k) => tile(k, p[k][v])).join('') + '</div>' +
- (hasPhoto ? tile('photo', p.photo[v]) : '') + '</div>' +
- (hasPhoto && p.photo[v] ? '<button type="button" class="lb-ov-row" data-lbopen="photo"><img src="' + src('photo', 'w300', p.photo[v]) + '" alt=""><span>' + esc(T.photoRow) + '</span>' + ARROW + '</button>' : '');
+ (hasPhoto ? tile('photo', p.photo[v]) : '') + '</div>';
+ }
+ // The formats this set has, in the order of the format row and the vertical swipe: the overview first.
+ const fmtList = (p) => (hasMedium(p, 'compare') ? ['compare', 'line'] : ['line'])
+ .concat(p.clay.some(Boolean) ? MAP_KINDS : [], p.photo.some(Boolean) ? ['photo'] : []);
+ // The format row under an enlarged image (design X1): one tap to any other format, and its first item, the
+ // overview, is the way back. A format this angle lacks stays in place, disabled.
+ function fmtsHtml(p, T) {
+ const v = LB.v;
+ return fmtList(p).map((k) => {
+ const f = k === 'compare' ? true : p[k][v];
+ const ic = k === 'compare' ? '<span class="fmt-all" aria-hidden="true"><i></i><i></i><i></i><i></i></span>'
+ : f ? '<img src="' + src(k, 'w300', f) + '" alt="">' : '<span class="fmt-gap">' + ICON[isMap(k) ? 'map' : k] + '</span>';
+ return '<button type="button" class="' + k + '" data-lbfmt="' + k + '" aria-pressed="' + (LB.medium === k) + '"' + (f ? '' : ' disabled') + '>' +
+ ic + '<span>' + esc(k === 'compare' ? T.allShort : T[k]) + '</span></button>';
+ }).join('');
}
function renderLb() {
const T = t();
@@ -670,11 +684,13 @@
const pair = $('lbPair');
pair.hidden = !compare;
pair.innerHTML = compare ? overviewHtml(p, T) : '';
- const back = hasMedium(p, 'compare') && !compare;
- $('lbBack').hidden = $('lbBack2').hidden = !back;
- $('lb').classList.toggle('has-back', back);
- $('lbBackText').textContent = $('lbBack2Text').textContent = T.overview;
- $('lbBackFmt').textContent = back ? '· ' + T[m] : '';
+ // The format row replaces the back buttons; they stay in the markup, hidden.
+ const fmts = hasMedium(p, 'compare') && !compare;
+ $('lbBack').hidden = $('lbBack2').hidden = true;
+ $('lb').classList.toggle('has-fmts', fmts);
+ $('lbFmts').hidden = !fmts;
+ $('lbFmts').setAttribute('aria-label', T.medium);
+ $('lbFmts').innerHTML = fmts ? fmtsHtml(p, T) : '';
const miss = $('lbMissing');
miss.hidden = !!f || compare;
miss.innerHTML = f || compare ? '' : lbGapHtml(p, arr, m, T);
@@ -682,7 +698,9 @@
// With one view or none there is nowhere to step; a live-looking arrow that does nothing reads as broken.
$('lbPrev').disabled = $('lbNext').disabled = arr.filter(Boolean).length < 2;
const list = lbList();
- $('lbMeta').textContent = p.id + ' · ' + T.series[p.series] + ' · ' + catLabel(p) + ' · ' + (list.indexOf(p) + 1) + '/' + list.length;
+ // Phones keep only the ID and category in this line (.lb-mx hides the rest) to give the image the height.
+ $('lbMeta').innerHTML = esc(p.id) + '<span class="lb-mx"> · ' + esc(T.series[p.series]) + '</span> · ' + esc(catLabel(p)) +
+ '<span class="lb-mx"> · ' + (list.indexOf(p) + 1) + '/' + list.length + '</span>';
$('lb').classList.toggle('more', LB.more);
$('lbMore').setAttribute('aria-expanded', String(LB.more));
$('lbTitle').textContent = nameOf(p);
@@ -773,6 +791,25 @@
else openLb(LB.id, LB.v, 'compare', true);
}
$('lbBack').addEventListener('click', toOverview);
+ $('lbFmts').addEventListener('click', (e) => {
+ const b = e.target.closest('[data-lbfmt]');
+ if (b && !b.disabled) pickFormat(b.dataset.lbfmt);
+ });
+ // Switching from one enlarged format to another replaces the entry; the overview goes back through history.
+ function pickFormat(k) {
+ if (k === LB.medium) return;
+ if (k === 'compare') return toOverview();
+ // Leaving the overview pushes one entry, as a tile tap does, so back returns to it.
+ if (LB.medium === 'compare') { history.pushState(null, '', location.href); LB.pushed = true; }
+ openLb(LB.id, LB.v, k, true);
+ }
+ function flash(label) {
+ const el = $('lbFlash');
+ el.textContent = label;
+ el.classList.remove('on');
+ void el.offsetWidth; // restart the fade
+ el.classList.add('on');
+ }
$('lbBack2').addEventListener('click', toOverview);
window.addEventListener('popstate', () => {
if (!LB.pushed) return;
@@ -836,12 +873,18 @@
$('lbWipeRange').addEventListener('input', setWipe);
$('lbWipeBar').addEventListener('pointerdown', (e) => e.stopPropagation());
let swipeX = null;
- $('lbStage').addEventListener('pointerdown', (e) => { swipeX = e.clientX; });
+ let swipeY = null;
+ $('lbStage').addEventListener('pointerdown', (e) => { swipeX = e.clientX; swipeY = e.clientY; });
$('lbStage').addEventListener('pointerup', (e) => {
if (swipeX === null) return;
- const dx = e.clientX - swipeX;
- swipeX = null;
- if (Math.abs(dx) > 50) stepAngle(dx < 0 ? 1 : -1);
+ const dx = e.clientX - swipeX, dy = e.clientY - swipeY;
+ swipeX = swipeY = null;
+ // Phones: up / down steps through the formats in the row's order (not while the details panel scrolls).
+ if (ALBUM && !LB.more && Math.abs(dy) > 50 && Math.abs(dy) > Math.abs(dx)) {
+ const p = byId.get(LB.id), list = fmtList(p).filter((k) => k === 'compare' || p[k][LB.v]);
+ const i = list.indexOf(LB.medium), next = list[i + (dy < 0 ? 1 : -1)];
+ if (next) { pickFormat(next); flash(next === 'compare' ? t().overview : t()[next]); }
+ } else if (Math.abs(dx) > 50) stepAngle(dx < 0 ? 1 : -1);
});
// Deep links: #P001 and #P001-diag open the overview (as do the older #P001-diag-compare links);
diff --git a/web/i18n.js b/web/i18n.js
index eab9dea8..37427d59 100644
--- a/web/i18n.js
+++ b/web/i18n.js
@@ -21,7 +21,7 @@ window.I18N = {
clay: '白模', depth: '深度', normal: '法线', overlay: '对照线稿',
fmtNote: { clay: '灰色人台,带体积和明暗,和线稿一样可以直接当参考图。', depth: '深度图,白近黑远。给 ComfyUI 等的 ControlNet Depth 用,会带上人台的体型。', normal: '法线图,颜色表示表面朝向。给 ControlNet Normal 用,会带上人台的体型。' },
gapLine: '正在补画', gapLineSub: '这个机位还在画,先看看别的吧', gapLineShort: '补画中',
- gapPhoto: '暂无实拍', gapPhotoSub: '这个机位先看线稿吧', gapPhotoShort: '无实拍', gapMap: (f) => '暂无' + f, overview: '全部格式', youClicked: '你点的这张', overviewNote: '同一机位的全部格式,点一张放大。', photoRow: '这套另有实拍', gapOther: '先看看别的机位吧',
+ gapPhoto: '暂无实拍', gapPhotoSub: '这个机位先看线稿吧', gapPhotoShort: '无实拍', gapMap: (f) => '暂无' + f, overview: '全部格式', allShort: '全部', overviewNote: '同一机位的全部格式,点一张放大。', gapOther: '先看看别的机位吧',
goView: (v) => '看' + v, goLine: '看线稿', goPhoto: '看实拍',
empty: '没有找到匹配的姿势', cols2: '两列', cols3: '三列', prevPose: '上一套', nextPose: '下一套', details: '详情',
close: '关闭', prevAngle: '上一个机位', nextAngle: '下一个机位', open: (id) => '打开 ' + id + ' 大图',
@@ -57,7 +57,7 @@ window.I18N = {
clay: 'クレイ', depth: '深度', normal: '法線', overlay: '線画と比較',
fmtNote: { clay: 'グレーのマネキン。立体感と陰影があり、線画と同じく参照画像としてそのまま使えます。', depth: '深度マップ(白が手前、黒が奥)。ComfyUI などの ControlNet Depth 用。マネキンの体型も反映されます。', normal: '法線マップ(色で面の向きを表します)。ControlNet Normal 用。マネキンの体型も反映されます。' },
gapLine: 'ただいま描き足し中', gapLineSub: 'ほかのアングルを先にどうぞ', gapLineShort: '描き足し中',
- gapPhoto: '実写はまだありません', gapPhotoSub: 'このアングルは線画でどうぞ', gapPhotoShort: '実写なし', gapMap: (f) => f + 'はありません', overview: 'すべての形式', youClicked: 'クリックした画像', overviewNote: 'このアングルのすべての形式。タップで拡大します。', photoRow: 'このポーズには実写もあります', gapOther: 'ほかのアングルを先にどうぞ',
+ gapPhoto: '実写はまだありません', gapPhotoSub: 'このアングルは線画でどうぞ', gapPhotoShort: '実写なし', gapMap: (f) => f + 'はありません', overview: 'すべての形式', allShort: 'すべて', overviewNote: 'このアングルのすべての形式。タップで拡大します。', gapOther: 'ほかのアングルを先にどうぞ',
goView: (v) => v + 'を見る', goLine: '線画を見る', goPhoto: '実写を見る',
empty: '該当するポーズがありません', cols2: '2列', cols3: '3列', prevPose: '前のポーズ', nextPose: '次のポーズ', details: '詳細',
close: '閉じる', prevAngle: '前のアングル', nextAngle: '次のアングル', open: (id) => id + ' を拡大表示',
@@ -93,7 +93,7 @@ window.I18N = {
clay: 'Clay', depth: 'Depth', normal: 'Normal', overlay: 'Line art',
fmtNote: { clay: 'A grey mannequin with volume and shading; use it as a reference image just like the line art.', depth: 'Depth map, white is near. For ControlNet Depth in ComfyUI and similar tools; it carries the mannequin\'s build.', normal: 'Normal map, colour shows which way each surface faces. For ControlNet Normal; it carries the mannequin\'s build.' },
gapLine: 'Still drawing this one', gapLineSub: 'Meanwhile, try another angle', gapLineShort: 'Drawing',
- gapPhoto: 'No photo yet', gapPhotoSub: 'The line art has this angle', gapPhotoShort: 'No photo', gapMap: (f) => 'No ' + f.toLowerCase() + ' map', overview: 'All formats', youClicked: 'The one you clicked', overviewNote: 'Every format of this angle. Click one to enlarge it.', photoRow: 'This pose also has a photo', gapOther: 'Meanwhile, try another angle',
+ gapPhoto: 'No photo yet', gapPhotoSub: 'The line art has this angle', gapPhotoShort: 'No photo', gapMap: (f) => 'No ' + f.toLowerCase() + ' map', overview: 'All formats', allShort: 'All', overviewNote: 'Every format of this angle. Click one to enlarge it.', gapOther: 'Meanwhile, try another angle',
goView: (v) => 'See ' + v, goLine: 'See line art', goPhoto: 'See photo',
empty: 'No poses match', cols2: 'Two columns', cols3: 'Three columns', prevPose: 'Previous pose', nextPose: 'Next pose', details: 'Details',
close: 'Close', prevAngle: 'Previous angle', nextAngle: 'Next angle', open: (id) => 'Open ' + id,
@@ -129,7 +129,7 @@ window.I18N = {
clay: '클레이', depth: '깊이', normal: '노멀', overlay: '선화 비교',
fmtNote: { clay: '회색 마네킹으로 입체감과 명암이 있습니다. 선화처럼 참고 이미지로 바로 쓸 수 있습니다.', depth: '깊이 맵(흰색이 가까움). ComfyUI 등의 ControlNet Depth용이며 마네킹 체형이 반영됩니다.', normal: '노멀 맵(색이 표면 방향을 나타냄). ControlNet Normal용이며 마네킹 체형이 반영됩니다.' },
gapLine: '지금 그리는 중이에요', gapLineSub: '먼저 다른 앵글을 보세요', gapLineShort: '그리는 중',
- gapPhoto: '아직 실사가 없어요', gapPhotoSub: '이 앵글은 선화로 보세요', gapPhotoShort: '실사 없음', gapMap: (f) => f + ' 없음', overview: '모든 형식', youClicked: '방금 누른 이미지', overviewNote: '이 앵글의 모든 형식입니다. 눌러서 크게 보세요.', photoRow: '이 포즈는 실사도 있습니다', gapOther: '먼저 다른 앵글을 보세요',
+ gapPhoto: '아직 실사가 없어요', gapPhotoSub: '이 앵글은 선화로 보세요', gapPhotoShort: '실사 없음', gapMap: (f) => f + ' 없음', overview: '모든 형식', allShort: '전체', overviewNote: '이 앵글의 모든 형식입니다. 눌러서 크게 보세요.', gapOther: '먼저 다른 앵글을 보세요',
goView: (v) => v + ' 보기', goLine: '선화 보기', goPhoto: '실사 보기',
empty: '일치하는 포즈가 없습니다', cols2: '2열', cols3: '3열', prevPose: '이전 포즈', nextPose: '다음 포즈', details: '상세',
close: '닫기', prevAngle: '이전 앵글', nextAngle: '다음 앵글', open: (id) => id + ' 크게 보기',
diff --git a/web/index.html b/web/index.html
index 79522584..c974c988 100644
--- a/web/index.html
+++ b/web/index.html
@@ -123,6 +123,8 @@ __NOSCRIPT__
<button type="button" class="lb-nav r" id="lbNext" data-i18n-aria="nextAngle"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M9 5l7 7-7 7"/></svg></button>
<span class="lb-counter" id="lbCounter"></span>
<p class="lb-tip" id="lbTip" role="status" hidden></p>
+ <div class="lb-fmts" role="group" id="lbFmts" hidden></div>
+ <span class="lb-flash" id="lbFlash" aria-hidden="true"></span>
</div>
<aside class="lb-side">
<div class="lb-head">