oficina / mapa Public

Review H1: the open Links panel moves the page column, it does not squeeze it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Summary

Fable's Phase 1 review (6e3aa6b): Review H1: the open Links panel moves the page column, it does not squeeze it
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 4c590e67146df1c4f468411810e24ee9dd59f8f2 parent fa1e500
1 file changed, +26 −3
  • internal/mapa/static/links.css +26 −3
diff --git a/internal/mapa/static/links.css b/internal/mapa/static/links.css
index 5097e70..5acab1c 100644
--- a/internal/mapa/static/links.css
+++ b/internal/mapa/static/links.css
@@ -46,19 +46,42 @@ aside[mapa-links] h2 {
aside[mapa-links] h2 small,
[mapa-foot-refs] h2 small { font-size: 11px; font-variant-numeric: tabular-nums; }
[mapa-peek] { display: none; }
+[mapa-peek][hidden] { display: none !important; }
/* The page column moves left only when the panel needs the room
- (Docs' sheet-centring rule), measured on the main column. */
+ (Docs' sheet-centring rule): the box shifts, it is never padded. It
+ is centred while there is room, then slides left to clear the panel
+ (312px, 12px in, a 16px gap: 340px), then narrows from 42rem to
+ 36rem. Percentages are of the main column, so the sidebar's width is
+ already taken out. Narrower than that, the panel is not drawn and
+ its lists are at the page's foot (H1 of Fable's Phase 1 review): main
+ needs 36rem + 96px + 340px = 1012px, which is a 1236px window with
+ the sidebar open and 1068px with the rail. */
@media (min-width: 64rem) {
- [mapa-main] { container-type: inline-size; }
[mapa-app][data-links="open"] [mapa-doc] {
- padding-inline-end: max(48px, calc(48px + 2 * 340px + 42rem + 96px - 100cqi));
+ --mapa-box: max(calc(36rem + 96px),
+ min(calc(42rem + 96px), calc(100% - 340px)));
+ max-inline-size: var(--mapa-box);
+ margin-inline-start: max(0px, min(calc((100% - var(--mapa-box)) / 2),
+ calc(100% - var(--mapa-box) - 340px)));
+ margin-inline-end: auto;
}
[mapa-app][data-links="open"] [mapa-foot-refs] { display: none; }
}
@media (max-width: 63.99rem) {
aside[mapa-links] { display: none; }
}
+@media (min-width: 64rem) and (max-width: 77.24rem) {
+ [mapa-app][data-side="open"] aside[mapa-links] { display: none; }
+ [mapa-app][data-side="open"][data-links="open"] [mapa-foot-refs] { display: grid; }
+ [mapa-app][data-side="open"][data-links="open"] [mapa-doc] { max-inline-size: calc(42rem + 96px); margin-inline: auto; }
+}
+@media (min-width: 64rem) and (max-width: 66.74rem) {
+ [mapa-app][data-side="rail"] aside[mapa-links],
+ [mapa-app]:not([data-side]) aside[mapa-links] { display: none; }
+ [mapa-app]:not([data-side="open"])[data-links="open"] [mapa-foot-refs] { display: grid; }
+ [mapa-app]:not([data-side="open"])[data-links="open"] [mapa-doc] { max-inline-size: calc(42rem + 96px); margin-inline: auto; }
+}
/* ── References: Linked from, Mentioned. ── */
ul[mapa-refs] { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }