Refine README and detail preview layout
This commit is contained in:
@@ -1297,7 +1297,8 @@ def _recipe_direct_render(
|
||||
text-decoration: underline;
|
||||
}
|
||||
.rdr-table-preview {
|
||||
margin-top: 8px;
|
||||
margin-top: 4px;
|
||||
width: 100%;
|
||||
}
|
||||
.rdr-preview-table {
|
||||
border-collapse: collapse;
|
||||
@@ -1526,24 +1527,26 @@ def assemble_slide_html_final(ctx: "PipelineContext", title_text: str = "", meas
|
||||
# right sub_type 확인 — visual_detail이면 summary + popup
|
||||
right_sub_type = sub_types[1].get("sub_type", "") if len(sub_types) > 1 else ""
|
||||
|
||||
# 우측: 요약 + popup 링크
|
||||
# 우측: 제목(+자세히보기 우측) + 표 preview
|
||||
right_parts = []
|
||||
if len(sub_titles) > 1:
|
||||
right_title = sub_titles[1]
|
||||
right_title = sub_titles[1] if len(sub_titles) > 1 else ""
|
||||
pf = popup_file_map.get(role_name, "")
|
||||
|
||||
# 헤더 라인: 제목 좌측 + 자세히보기 우측 (한 줄)
|
||||
if right_title or pf:
|
||||
link_html = f'<a href="{pf}" class="rdr-detail-link">자세히보기 →</a>' if pf else ""
|
||||
right_parts.append(
|
||||
f'<div style="font-weight:700;font-size:13px;color:#1a365d;margin-bottom:8px;">'
|
||||
f'{right_title}</div>'
|
||||
f'<div style="display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px;">'
|
||||
f'<div style="font-weight:700;font-size:12px;color:#1a365d;">{right_title}</div>'
|
||||
f'{link_html}</div>'
|
||||
)
|
||||
# structured detail preview + exactly one link
|
||||
if role_name in popup_file_map:
|
||||
pf = popup_file_map[role_name]
|
||||
|
||||
# 표 preview (전체 너비)
|
||||
if pf:
|
||||
preview_html = _build_detail_preview(role_name, popups)
|
||||
if preview_html:
|
||||
right_parts.append(preview_html)
|
||||
right_parts.append(
|
||||
f'<div class="rdr-detail-link-wrap">'
|
||||
f'<a href="{pf}" class="rdr-detail-link">자세히보기 →</a></div>'
|
||||
)
|
||||
|
||||
right_html = "\n".join(right_parts) if right_parts else ""
|
||||
|
||||
ratio = recipe.get("ratio", "6:4")
|
||||
|
||||
Reference in New Issue
Block a user