Confirm pops overlay the page instead of scrolling it
Browse files at this commit1abf2417050fba13afd80c39ec573a4eda74b977Parent: 01ad1241 changed file +12 -3
- style/main.scss +12 -3
style/main.scssmodified+12 -3
| @@ -1195,15 +1195,24 @@ body:has(.log-list) { | ||
| 1195 | 1195 | } |
| 1196 | 1196 | |
| 1197 | 1197 | .admin-confirm-pop { |
| 1198 | - position: absolute; | |
| 1199 | - right: 0; | |
| 1200 | - top: calc(100% + 6px); | |
| 1198 | + // Viewport-fixed and centered, iz's delete-confirm model: position:fixed | |
| 1199 | + // escapes every overflow ancestor, and the table wrap is a scroll | |
| 1200 | + // container (it takes the tables' sideways scroll) — an absolutely | |
| 1201 | + // anchored pop inside it would grow that scroll area instead of | |
| 1202 | + // overlaying the page. Centered also reads as the page's one dialog and | |
| 1203 | + // is row-agnostic: the first row's pop and the last row's pop land the | |
| 1204 | + // same, at any width. | |
| 1205 | + position: fixed; | |
| 1206 | + top: 50%; | |
| 1207 | + left: 50%; | |
| 1208 | + transform: translate(-50%, -50%); | |
| 1201 | 1209 | z-index: 30; |
| 1202 | 1210 | width: 240px; |
| 1203 | 1211 | padding: 12px; |
| 1204 | 1212 | background: var(--surface); |
| 1205 | 1213 | border: 1px solid var(--border-strong); |
| 1206 | 1214 | border-radius: var(--radius); |
| 1215 | + box-shadow: var(--shadow-2); | |
| 1207 | 1216 | display: flex; |
| 1208 | 1217 | flex-direction: column; |
| 1209 | 1218 | gap: 8px; |