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

Fix model and mode menu side offset #812

Merged
merged 1 commit into from
Nov 14, 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
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
Loading