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

Implement custom width options for chat and prompt field #37

Closed
15 tasks done
itsmartashub opened this issue Jul 12, 2024 · 0 comments · Fixed by #35
Closed
15 tasks done

Implement custom width options for chat and prompt field #37

itsmartashub opened this issue Jul 12, 2024 · 0 comments · Fixed by #35
Assignees
Labels
Feature A proposal for a new feature or an enhancement Status: Already Implemented A proposal which has already been implemented before

Comments

@itsmartashub
Copy link
Owner

itsmartashub commented Jul 12, 2024

Currently, the chat and textarea prompt widths are fixed, which may not provide enough flexibility for users with different screen sizes or preferences. To enhance the user experience, we should implement custom width options that allow users to adjust the width of the chat and textarea prompt to their liking.

Solution Basics:

1. Chat Width Customization:

  • Add a settings option that allows users to set a custom width for the chat area.
  • Implement a slider where users can specify the desired width as a percentage of the chat width.
  • Ensure that the chat area dynamically adjusts to the specified width, providing a real-time preview of the changes.
  • Change the edit state icon position for user chats avoiding its cutting when increasing the chats width
  • Add reset button for all width options (chats, prompt field, sync prompt)
  • Cross page consistency (storage saving)

2. Prompt Field Width Customization:

  • Similarly, provide a settings option for customizing the width of the textarea prompt where users type their messages.
  • Allow users to set a custom width as a percentage, to suit their typing preferences.
  • Ensure that the chat area dynamically adjusts to the specified width, providing a real-time preview of the changes.
  • Cross page consistency (storage saving)

3. Sync Feature for Prompt Field [#38]:

  • Introduce a sync option for the textarea prompt width, implemented as a switch/checkbox.
  • When enabled, the textarea prompt width automatically follows the chat width, providing a consistent layout.
  • If disabled, the custom prompt width settings become active, allowing users to set their preferred width independently from the chat width.
  • Add a lock icon indicator on the prompt message sync custom width which will dynamically appears based on the state of the prompt sync switch value
  • Cross page consistency (storage saving)
@itsmartashub itsmartashub self-assigned this Jul 12, 2024
@itsmartashub itsmartashub linked a pull request Jul 12, 2024 that will close this issue
22 tasks
@itsmartashub itsmartashub added Feature A proposal for a new feature or an enhancement Status: WIP Work In Progress labels Jul 12, 2024
@itsmartashub itsmartashub added Status: Already Implemented A proposal which has already been implemented before and removed Status: WIP Work In Progress labels Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A proposal for a new feature or an enhancement Status: Already Implemented A proposal which has already been implemented before
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant