Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ext: polish dropdown convo list #8930

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from "@dust-tt/sparkle";
import { useConversations } from "@extension/components/conversation/useConversations";
import moment from "moment";
import React from "react";
import { useNavigate, useParams } from "react-router-dom";

type GroupLabel =
Expand Down Expand Up @@ -85,7 +86,7 @@ const Content = () => {
) : (
<ScrollArea className="h-[80vh]">
{Object.keys(conversationsByDate).map((dateLabel) => (
<>
<React.Fragment key={dateLabel}>
{conversationsByDate[dateLabel as GroupLabel].length > 0 && (
<DropdownMenuLabel label={dateLabel} />
)}
Expand All @@ -103,7 +104,7 @@ const Content = () => {
}}
/>
))}
</>
</React.Fragment>
))}
</ScrollArea>
);
Expand All @@ -126,7 +127,9 @@ export const ConversationsListButton = ({
/>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-[80vw]">
<Content />
<div className="py-2">
<Content />
</div>
</DropdownMenuContent>
</DropdownMenu>
);
Expand Down
2 changes: 1 addition & 1 deletion extension/app/src/components/input_bar/InputBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export function AssistantInputBar({
<div className="flex w-full flex-1 flex-col items-end self-stretch">
<div
className={classNames(
"relative flex w-full flex-1 flex-col items-stretch gap-0 self-stretch p-2",
"relative flex w-full flex-1 flex-col items-stretch gap-0 self-stretch p-3",
"border-struture-200 border-t bg-white/90 backdrop-blur focus-within:border-structure-300",
"transition-all",
"rounded-2xl border-b border-l border-r border-element-500 focus-within:border-action-300 focus-within:shadow-md focus-within:ring-1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const InputBarContainer = ({

const contentEditableClasses = classNames(
"inline-block w-full",
"border-0 pr-1 pl-2 sm:pl-0 outline-none ring-0 focus:border-0 focus:outline-none focus:ring-0 py-3.5",
"border-0 pr-1 pl-2 sm:pl-0 outline-none ring-0 focus:border-0 focus:outline-none focus:ring-0",
"whitespace-pre-wrap font-normal"
);

Expand Down