Skip to content

Commit

Permalink
Fix model and mode menu side offset
Browse files Browse the repository at this point in the history
  • Loading branch information
logancyang committed Nov 13, 2024
1 parent 0d574e1 commit fa7e57e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/ChatComponents/ChatControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const ChatControls: React.FC<ChatControlsProps> = ({
</DropdownMenu.Trigger>

<DropdownMenu.Portal>
<DropdownMenu.Content className="chain-select-content">
<DropdownMenu.Content className="chain-select-content" align="end" sideOffset={5}>
<DropdownMenu.Item onSelect={() => handleChainChange({ value: "llm_chain" })}>
chat
</DropdownMenu.Item>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChatComponents/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const ChatInput: React.FC<ChatInputProps> = ({
</DropdownMenu.Trigger>

<DropdownMenu.Portal>
<DropdownMenu.Content className="model-select-content">
<DropdownMenu.Content className="model-select-content" align="start">
{settings.activeModels
.filter((model) => model.enabled)
.map((model) => (
Expand Down
2 changes: 0 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ If your plugin does not need CSS, delete this file.
border-radius: 4px;
padding: 4px;
font-size: 10px;
transform: translateX(30px);
z-index: 1000;
}

Expand Down Expand Up @@ -259,7 +258,6 @@ If your plugin does not need CSS, delete this file.
border-radius: 4px;
padding: 4px;
font-size: 10px;
transform: translateX(-5px);
z-index: 1000;
}

Expand Down

0 comments on commit fa7e57e

Please sign in to comment.