style
This commit is contained in:
parent
c3f9204b85
commit
46f46652ca
3 changed files with 12 additions and 7 deletions
|
|
@ -118,7 +118,7 @@ function ContinueInputBox(props: ContinueInputBoxProps) {
|
|||
return (
|
||||
<div className={`${props.hidden ? "hidden" : ""}`}>
|
||||
<div className={`relative flex flex-col px-2`}>
|
||||
<Lump open={lumpOpen} setOpen={setLumpOpen} />
|
||||
{props.isMainInput && <Lump open={lumpOpen} setOpen={setLumpOpen} />}
|
||||
<GradientBorder
|
||||
loading={isStreaming && props.isLastUserInput ? 1 : 0}
|
||||
borderColor={
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export function Lump(props: LumpProps) {
|
|||
|
||||
return (
|
||||
<LumpDiv open={open}>
|
||||
<div className="px-2 pt-0.5">
|
||||
<div className="mt-0.5 px-2">
|
||||
<TopInputToolbar
|
||||
selectedSection={selectedSection}
|
||||
setSelectedSection={setSelectedSection}
|
||||
|
|
|
|||
|
|
@ -14,11 +14,16 @@ import { AssistantSelectOptions } from "./AssistantSelectOptions";
|
|||
function AssistantSelectButton(props: { selectedProfile: ProfileDescription }) {
|
||||
return (
|
||||
<div className="flex max-w-[50vw] items-center gap-0.5">
|
||||
<div className="mr-1 h-3 w-3 flex-shrink-0">
|
||||
<div className="mr-1 h-3 w-3 flex-shrink-0 select-none">
|
||||
<AssistantIcon size={3} assistant={props.selectedProfile} />
|
||||
</div>
|
||||
<span className="truncate">{props.selectedProfile.title}</span>
|
||||
<ChevronDownIcon className="h-2 w-2 flex-shrink-0" aria-hidden="true" />
|
||||
<span className="select-none truncate">
|
||||
{props.selectedProfile.title}
|
||||
</span>
|
||||
<ChevronDownIcon
|
||||
className="h-2 w-2 flex-shrink-0 select-none"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
@ -66,7 +71,7 @@ export default function AssistantSelect() {
|
|||
className="hover:bg flex cursor-pointer select-none items-center gap-1 whitespace-nowrap text-gray-400"
|
||||
style={{ fontSize: `${getFontSize() - 3}px` }}
|
||||
>
|
||||
<PlusIcon className="h-3 w-3" /> Create your first assistant
|
||||
<PlusIcon className="h-3 w-3 select-none" /> Create your first assistant
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
@ -77,7 +82,7 @@ export default function AssistantSelect() {
|
|||
<Popover.Button
|
||||
data-testid="assistant-select-button"
|
||||
ref={buttonRef}
|
||||
className="cursor-pointer border-none bg-transparent text-gray-400 hover:brightness-125"
|
||||
className="mt-0.5 cursor-pointer border-none bg-transparent text-gray-400 hover:brightness-125"
|
||||
style={{ fontSize: `${getFontSize() - 3}px` }}
|
||||
>
|
||||
<AssistantSelectButton selectedProfile={selectedProfile} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue