Differential D304842
Bug 2042518 - Fix extra spacing in user chat bubble ClosedPublic Authored by yjamora on Thu, Jun 4, 5:30 PM. Referenced Files
Details
Test Plan
Diff Detail
Event Timelineyjamora planned changes to this revision.Thu, Jun 4, 5:30 PM yjamora created this revision. phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Thu, Jun 4, 5:30 PM phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)". phab-bot removed a project: secure-revision. yjamora requested review of this revision.Thu, Jun 4, 5:32 PM phab-bot removed a reviewer: ai-frontend-reviewers-rotation. phab-bot added a subscriber: ai-frontend-reviewers-rotation. yjamora retitled this revision from WIP: Bug 2042518 - Fix extra spacing in user chat bubble to Bug 2042518 - Fix extra spacing in user chat bubble. Comment Actions SummarizationIntentThe change aims to fix a visual bug where extra spacing (padding) appeared after a user's chat bubble, specifically when the user stopped the assistant's response generation. This extra bottom padding was being incorrectly applied to user chat bubbles when they happened to be the last child element in the chat content area. SolutionThe fix modifies a CSS selector that previously applied bottom padding to the last child element within the chat content container. The original selector () indiscriminately added to whatever the last child element was, which could be a user chat bubble (e.g., when the assistant's response was stopped before it appeared). The updated selector () adds an exclusion for elements with the class, ensuring that the fade-related bottom padding is only applied to non-user elements (such as assistant responses), thereby removing the unwanted extra spacing after user messages. Automated review completed with no comments. echa accepted this revision.Thu, Jun 4, 5:49 PM This revision is now accepted and ready to land.Thu, Jun 4, 5:49 PM Closed by commit rFIREFOXAUTOLAND66de5f263402: Bug 2042518 - Fix extra spacing in user chat bubble r=echa (authored by yjamora). · Explain WhyMon, Jun 8, 7:14 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 1294302 |
