mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 16:07:15 +02:00
fix: improve chat UX with better scroll and symmetric padding
- Add alignToBottom prop to Virtuoso for better last message visibility - Add small footer to prevent last message from being hidden under scroll - Make composer padding symmetric (py-1 instead of py-1 pb-0)
This commit is contained in:
@@ -836,6 +836,7 @@ export function ChatViewer({
|
||||
data={messagesWithMarkers}
|
||||
initialTopMostItemIndex={messagesWithMarkers.length - 1}
|
||||
followOutput="smooth"
|
||||
alignToBottom
|
||||
components={{
|
||||
Header: () =>
|
||||
hasMore && conversationResult.status === "success" ? (
|
||||
@@ -857,6 +858,7 @@ export function ChatViewer({
|
||||
</Button>
|
||||
</div>
|
||||
) : null,
|
||||
Footer: () => <div className="h-1" />,
|
||||
}}
|
||||
itemContent={(_index, item) => {
|
||||
if (item.type === "day-marker") {
|
||||
@@ -894,7 +896,7 @@ export function ChatViewer({
|
||||
|
||||
{/* Message composer - only show if user has active account */}
|
||||
{hasActiveAccount ? (
|
||||
<div className="border-t px-2 py-1 pb-0">
|
||||
<div className="border-t px-2 py-1">
|
||||
{replyTo && (
|
||||
<ComposerReplyPreview
|
||||
replyToId={replyTo}
|
||||
|
||||
Reference in New Issue
Block a user