fix(assistant): #91 question positionnee au bord haut de la fenetre (padding dynamique, overflow-anchor, passe de correction)
CI / lint (push) Successful in 1m27s
CI / security (push) Successful in 1m0s
CI / test (push) Successful in 3m23s
CI / build (push) Successful in 51s
CI / e2e (push) Successful in 10m56s

This commit is contained in:
2026-09-15 20:29:01 -04:00
parent 1ed0d52619
commit daf9ff3b2d
6 changed files with 130 additions and 24 deletions
+5 -3
View File
@@ -9436,10 +9436,12 @@ body.popup-mode .content-area {
@keyframes bookslm-spin { to { transform: rotate(360deg); } }
/* Notion-style AI thread: only this zone scrolls; entries stack vertically
with generous spacing. The latest user post is anchored to the top of the
visible area on send (scrollIntoView block:start + scroll-margin). */
visible area on send: the post is anchored flush at the top (block:start,
and the bottom padding is grown so a short answer can still roll the post
all the way up). */
.bookslm-messages { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex;
flex-direction: column; gap: 24px; }
.bookslm-msg { display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 14px; }
flex-direction: column; gap: 24px; overflow-anchor: none; }
.bookslm-msg { display: flex; flex-direction: column; gap: 4px; }
/* The user bubble is capped against the *thread* width, not against a
shrink-to-fit wrapper: capping both would compound (80% × 85% ≈ 68%) and
produced very short lines. Wrapper stretches, bubble carries the cap. */