feat: 格式从分组下沉到条目(v21)

- entry 新增 format(apps/posters/articles),老数据按根分组 view_mode 回填;seed 按分区写入
- 分组管理移除格式字段/显示,根分组只作容器
- 内容弹窗新增逐条格式选择,列表增加格式列;ItemEditor 保存时保留原格式
- 前台按 entry.format 渲染:卡片/分组页支持同组混合格式,详情按条目格式选模板
- 迁移后 live 20 应用 / 13 海报;cargo test 59 passed;Playwright 验证混合展示
This commit is contained in:
2026-10-31 14:26:28 +08:00
parent 8d094175fd
commit 11f992cdad
12 changed files with 173 additions and 72 deletions
+18 -1
View File
@@ -348,6 +348,10 @@
color: var(--su-text-sub);
}
.mixed-format-block + .mixed-format-block {
margin-top: var(--su-space-4);
}
.group-crumbs {
display: flex;
align-items: center;
@@ -1231,7 +1235,20 @@
/* 内容页:与分组管理一致的列表 */
.entry-table .entry-col-href {
width: 40%;
width: 36%;
}
.entry-table .entry-col-format {
width: 80px;
}
.entry-format {
display: inline-block;
padding: 0 var(--su-space-2);
border-radius: var(--su-radius-xs);
background-color: var(--su-bg-subtle);
color: var(--su-text-muted);
font-size: var(--su-font-size-sm);
}
.entry-table .entry-col-group {