From 7d961fd70b4fb588d80fc255a3990d8405256cc0 Mon Sep 17 00:00:00 2001 From: feco Date: Tue, 17 Nov 2026 09:58:21 +0000 Subject: [PATCH 1/2] Aspect grid: row and column headers, so both points of a cell are visible Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL --- services/frontend/src/app/globals.css | 2 + .../frontend/src/components/ChartTables.tsx | 66 ++++++++++++------- 2 files changed, 45 insertions(+), 23 deletions(-) diff --git a/services/frontend/src/app/globals.css b/services/frontend/src/app/globals.css index 7c80eb4..6249273 100644 --- a/services/frontend/src/app/globals.css +++ b/services/frontend/src/app/globals.css @@ -230,6 +230,8 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } } .aspect-grid th { color: var(--ink); font-weight: 400; font-size: 17px; background: var(--panel-2); } .aspect-grid .grid-angle { font: 600 11px var(--font-body); color: var(--gold); letter-spacing: 0.3px; } +.aspect-grid td.void, .aspect-grid td.corner { border: 0; background: none; } +.aspect-grid tbody td:not(.void):hover { background: var(--panel-2); } .asp-conjunction { color: var(--gold); } .asp-trine, .asp-sextile { color: var(--harmonic); } .asp-square { color: var(--square); } diff --git a/services/frontend/src/components/ChartTables.tsx b/services/frontend/src/components/ChartTables.tsx index ef8b4a4..3a2c194 100644 --- a/services/frontend/src/components/ChartTables.tsx +++ b/services/frontend/src/components/ChartTables.tsx @@ -84,33 +84,53 @@ function AspectGrid({ chart }: { chart: Chart }) { byPair.set(`${a.point2}|${a.point1}`, a); } + const label = ([id, text]: [string, string]) => ( + 2 ? "sym" : "grid-angle"} aria-label={pointName(id)} role="img"> + {text} + + ); + // Lower triangle with both headers: rows from the 2nd point, columns up to the last but one. + const cols = rows.slice(0, -1); + return (
- - {rows.map(([id, label], i) => ( - - {rows.slice(0, i).map(([other]) => { - const a = byPair.get(`${id}|${other}`); - const info = a ? ASPECTS[a.aspect] : undefined; - const text = a ? `${pointName(other)} ${info?.hu ?? a.aspect} ${pointName(id)}` : undefined; - return ( - - ); - })} - + + - - ))} + ))} + + + + {rows.slice(1).map((row, r) => { + const [id] = row; + return ( + + + {cols.map(([other], j) => { + if (j > r) return + ); + })} + + ); + })}
- {a && ( - - {info?.glyph ?? "?"} - - )} - - 2 ? "sym" : "grid-angle"} aria-label={pointName(id)} role="img"> - {label} - +
+ {cols.map((c) => ( + + {label(c)}
+ {label(row)} + ; + const a = byPair.get(`${id}|${other}`); + const info = a ? ASPECTS[a.aspect] : undefined; + const text = a ? `${pointName(other)} ${info?.hu ?? a.aspect} ${pointName(id)}` : undefined; + return ( + + {a && ( + + {info?.glyph ?? "?"} + + )} +
-- 2.54.0 From d2a24ca42da698c21b4b23c7c9a42234b4266f84 Mon Sep 17 00:00:00 2001 From: feco Date: Tue, 17 Nov 2026 10:21:20 +0000 Subject: [PATCH 2/2] Chart page: Sun, Moon and ASC in one small tile, columns of equal height, wider analysis Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL --- services/frontend/src/app/globals.css | 22 ++++++++++++++----- .../frontend/src/app/kepletek/[id]/page.tsx | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/services/frontend/src/app/globals.css b/services/frontend/src/app/globals.css index 6249273..47c944a 100644 --- a/services/frontend/src/app/globals.css +++ b/services/frontend/src/app/globals.css @@ -168,7 +168,7 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } /* Detailed analysis */ .analysis-card { gap: 14px; } -.analysis { display: flex; flex-direction: column; gap: 28px; max-width: 72ch; } +.analysis { display: flex; flex-direction: column; gap: 28px; } .analysis-head { display: flex; flex-direction: column; gap: 12px; } .analysis-head h2 { font-size: 34px; } .analysis-lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); font-style: italic; } @@ -207,10 +207,19 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } /* Payment step */ .pay-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel-2); } .pay-line { display: flex; justify-content: space-between; gap: 12px; } -.chart-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 24px; align-items: start; } -.chart-wheel-card { padding: 16px; gap: 10px; } +.chart-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 24px; align-items: stretch; } +.chart-side { gap: 16px; } +.chart-side .summary-card { flex: 1 1 auto; } +.chart-wheel-card { padding: 16px; gap: 10px; justify-content: center; } .chart-wheel { width: 100%; height: auto; display: block; max-width: 680px; margin: 0 auto; } -.chart-layout .big3 { grid-template-columns: 1fr; } +.chart-layout .big3 { + grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; +} +.chart-layout .big3 > div { background: none; border: 0; border-radius: 0; padding: 14px 16px; min-width: 0; } +.chart-layout .big3 > div + div { border-left: 1px solid var(--line); } +.chart-layout .big3 .glyph { font-size: 20px; } +.chart-layout .big3 strong { font-size: 21px; } +.chart-layout .big3 .muted { font-size: 13px; } .wheel-legend { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; } .wheel-legend-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; } .legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } @@ -277,7 +286,6 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } @media (max-width: 900px) { .chart-layout { grid-template-columns: 1fr; } - .chart-layout .big3 { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 640px) { @@ -287,7 +295,9 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } .card { padding: 18px; } .auth-aside { padding: 28px 20px; min-height: 0; } .wheel { width: 60%; } - .big3, .chart-layout .big3 { grid-template-columns: 1fr; } + .big3 { grid-template-columns: 1fr; } + .chart-layout .big3 > div { padding: 12px 10px; } + .chart-layout .big3 strong { font-size: 18px; } .chart-wheel-card { padding: 8px; } } diff --git a/services/frontend/src/app/kepletek/[id]/page.tsx b/services/frontend/src/app/kepletek/[id]/page.tsx index 7142b4c..4db55ba 100644 --- a/services/frontend/src/app/kepletek/[id]/page.tsx +++ b/services/frontend/src/app/kepletek/[id]/page.tsx @@ -55,7 +55,7 @@ export default async function ChartPage({ params }: { params: Promise<{ id: stri -
+
{(elements || modalities || phase) && ( -- 2.54.0