Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

Mac app fixes and improvements (part 3) (#921)

uuuvn23f365fc43cd
diff --git a/apps/mirai-gui/client/src/features/chat-history/components/saved-chats.tsx b/apps/mirai-gui/client/src/features/chat-history/components/saved-chats.tsx
index d16c8fd28..56e68b4ee 100644
--- a/apps/mirai-gui/client/src/features/chat-history/components/saved-chats.tsx
+++ b/apps/mirai-gui/client/src/features/chat-history/components/saved-chats.tsx
@@ -143,7 +143,7 @@ export default function SavedChats() {
return (
<div ref={scrollViewportRef} className="flex-1 overflow-y-auto overscroll-y-contain min-h-0 scrollbar-hide">
- <div className="flex flex-col gap-2">
+ <div className="flex flex-col gap-1">
{savedChats.length === 0 ? (
<div className="px-4 py-2 text-[13px] font-[350] leading-[150%] text-label-muted">No chats yet</div>
) : (
diff --git a/apps/mirai-gui/client/src/features/chat/components/chat-page.tsx b/apps/mirai-gui/client/src/features/chat/components/chat-page.tsx
index 0c9b4a099..d65ac2e59 100644
--- a/apps/mirai-gui/client/src/features/chat/components/chat-page.tsx
+++ b/apps/mirai-gui/client/src/features/chat/components/chat-page.tsx
@@ -162,7 +162,7 @@ export function ChatPage() {
isTitleGenerating={isTitleGeneratingForChat}
/>
- <div className="flex-1 overflow-clip min-h-0 w-full max-w-[var(--chat-width)] mx-auto">
+ <div className="flex-1 overflow-clip min-h-0 -mx-5">
<ChatMessageList
isNewChat={!!search.isNew}
isChatStreaming={isChatStreaming}
diff --git a/apps/mirai-gui/client/src/features/chat/components/message/message-list.tsx b/apps/mirai-gui/client/src/features/chat/components/message/message-list.tsx
index 51e62451d..9a29ce680 100644
--- a/apps/mirai-gui/client/src/features/chat/components/message/message-list.tsx
+++ b/apps/mirai-gui/client/src/features/chat/components/message/message-list.tsx
@@ -171,6 +171,7 @@ const MessageListComponent: React.FC<MessageListProps> = ({
<div
ref={scrollContainerRef}
className="absolute inset-0 flex flex-col overflow-y-auto overscroll-y-contain scrollbar-hide"
+ style={{ paddingInline: "max(1.25rem, calc((100% - var(--chat-width)) / 2))" }}
>
{messages.length > 0 ? (
messages.map((message, idx) => {