Skip to content

Commit

Permalink
Ext: polish dropdown convo list (#8930)
Browse files Browse the repository at this point in the history
* Ext: polish dropdown convo list

* Fix padding input bar
  • Loading branch information
PopDaph authored and overmode committed Nov 27, 2024
1 parent 48e7ccd commit a64fa07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
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

0 comments on commit a64fa07

Please sign in to comment.