Skip to content

Commit

Permalink
fix sidebar style on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
heimoshuiyu committed Feb 7, 2025
1 parent e10964c commit 5be8b55
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Navbar: React.FC = () => {
const { chatStore, setChatStore } = useContext(AppChatStoreContext);

return (
<header className="flex sticky top-0 bg-background h-14 shrink-0 items-center border-b z-50">
<header className="flex sticky top-0 bg-background h-14 shrink-0 items-center border-b z-30">
<div className="flex flex-col w-full">
<div className="flex flex-1 items-center gap-2">
<div className="flex items-center gap-2 px-3">
Expand Down
7 changes: 0 additions & 7 deletions src/components/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,6 @@ const Sidebar = React.forwardRef<
}
{...props}
>
{/* 关闭按钮 */}
<button
className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
onClick={() => setOpenMobile(false)}
>
<X className="h-4 w-4" />
</button>
<div className="flex h-full w-full flex-col">{children}</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Chatbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default function ChatBOX() {
token: data.usage?.completion_tokens_details
? data.usage.completion_tokens -
data.usage.completion_tokens_details.reasoning_tokens
: data.usage.completion_tokens ?? calculate_token_length(msg.content),
: (data.usage.completion_tokens ?? calculate_token_length(msg.content)),
example: false,
audio: null,
logprobs: data.choices[0]?.logprobs,
Expand Down

0 comments on commit 5be8b55

Please sign in to comment.