Commit aedf8ff
authored
Embed pin: right-side overlay that does not shift the map (#29)
When a country is pinned inside an embedded /embed iframe, render the
detail panel as an absolute overlay anchored at the canvas top-right
instead of pushing the map sideways or stacking it underneath. Key
properties:
- position: absolute so the pin is entirely out of the layout flow.
Opening the pin does not change the canvas size, position or the
rendered map (verified: Sweden's bounding rect is byte-identical
before and after the pin opens in /embed?chrome=minimal).
- Top offset is calc(36px + 0.5rem) when the toolbar is visible and
0.5rem when the toolbar is hidden, so the pin sits flush with the
canvas top with equal 0.5rem inset from the right edge in both
modes.
- 'Open full profile -> ' link opens in a new tab so embedding hosts
do not navigate away when a reader explores a country.1 parent 4058fdd commit aedf8ff
2 files changed
Lines changed: 47 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
410 | 412 | | |
411 | 413 | | |
412 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2130 | 2130 | | |
2131 | 2131 | | |
2132 | 2132 | | |
2133 | | - | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
2134 | 2139 | | |
2135 | 2140 | | |
2136 | 2141 | | |
| |||
2202 | 2207 | | |
2203 | 2208 | | |
2204 | 2209 | | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
2205 | 2249 | | |
2206 | 2250 | | |
2207 | 2251 | | |
| |||
0 commit comments