this also fixes the formatting error in #3962 on line 247 caused by forgetting to run prettier
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/3992
**Author:** [@thearyadev](https://github.com/thearyadev)
**Created:** 7/19/2024
**Status:** ✅ Merged
**Merged:** 7/19/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `feat/enter-to-select-model-indicator`
---
### 📝 Commits (1)
- [`e35df90`](https://github.com/open-webui/open-webui/commit/e35df904a0eebea2c4d4eff49cb039e4a814711c) feat: add indicator for enter-triggered model selection
### 📊 Changes
**1 file changed** (+6 additions, -4 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/chat/ModelSelector/Selector.svelte` (+6 -4)
</details>
### 📄 Description
**pr edited after feedback**
# Changelog Entry
### Description
This PR is an extension of #3962 (discussion #3960), adding an indicator to inform the user which model is currently selected for the enter shortcut.
- Add the hover styles to the base styles for the top result in the query.
### Changed
- iterator for displaying the query results provides the item and index
- styles for the `button` now highlights the top result, background is transparent on `group-hover`
- add `group` to parent div for `group-hover` handling
### Screenshots or Videos
https://private-user-images.githubusercontent.com/87589047/350181957-f610aac6-572d-41d7-ae2c-19bfc58a0b69.mov?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNTA1OTIsIm5iZiI6MTcyMTM1MDI5MiwicGF0aCI6Ii84NzU4OTA0Ny8zNTAxODE5NTctZjYxMGFhYzYtNTcyZC00MWQ3LWFlMmMtMTliZmM1OGEwYjY5Lm1vdj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDAwNTEzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkNmJmZjgwNzNlNTMwYzM3YmViZGY2YjJjYTNlM2ZiYjQ2YWQwYzBhNmUyZTkxZmNhYWQ2NDg3NzMxMWJiYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OP3uk0T9-W75PYN_1EL6Ngs8_WDSmqflsu5ipDgx5fQ
# Other
- this also fixes the formatting error in #3962 on line 247 caused by forgetting to run prettier
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/3992
Author: @thearyadev
Created: 7/19/2024
Status: ✅ Merged
Merged: 7/19/2024
Merged by: @tjbck
Base:
dev← Head:feat/enter-to-select-model-indicator📝 Commits (1)
e35df90feat: add indicator for enter-triggered model selection📊 Changes
1 file changed (+6 additions, -4 deletions)
View changed files
📝
src/lib/components/chat/ModelSelector/Selector.svelte(+6 -4)📄 Description
pr edited after feedback
Changelog Entry
Description
This PR is an extension of #3962 (discussion #3960), adding an indicator to inform the user which model is currently selected for the enter shortcut.
Changed
buttonnow highlights the top result, background is transparent ongroup-hovergroupto parent div forgroup-hoverhandlingScreenshots or Videos
https://private-user-images.githubusercontent.com/87589047/350181957-f610aac6-572d-41d7-ae2c-19bfc58a0b69.mov?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNTA1OTIsIm5iZiI6MTcyMTM1MDI5MiwicGF0aCI6Ii84NzU4OTA0Ny8zNTAxODE5NTctZjYxMGFhYzYtNTcyZC00MWQ3LWFlMmMtMTliZmM1OGEwYjY5Lm1vdj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE5VDAwNTEzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkNmJmZjgwNzNlNTMwYzM3YmViZGY2YjJjYTNlM2ZiYjQ2YWQwYzBhNmUyZTkxZmNhYWQ2NDg3NzMxMWJiYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OP3uk0T9-W75PYN_1EL6Ngs8_WDSmqflsu5ipDgx5fQ
Other
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.