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 ?? "?"} + + )} +