cairo-book / cairo-book

The Cairo Programming Language Book, a comprehensive documentation of the Cairo 1 programming language.
https://book.cairo-lang.org/
MIT License
234 stars 225 forks source link

feat: Chat Window Positioning and Responsiveness #1021

Open enitrat opened 5 hours ago

enitrat commented 5 hours ago

Improve chat window positioning and responsiveness

Description 📹

The chat window currently uses fixed positioning with percentage-based width, which can cause issues on different screen sizes. The window needs better responsive behavior and smoother transitions. We could fix the window in the bottom-left of the screen, so that navigation is not impaired by the chat window.

Proposed Actions 🛠️

  1. Fork and Create Branch:

    git checkout -b fix-chat-positioning
  2. Implement Changes:

    • [ ] Update chat window positioning in theme/css/chat.css:
      
      #chat-window {
      position: fixed;
      bottom: 20px;  /* Change from top: 50% */
      right: 20px;   /* Change from left: 50% */
      transform: none; /* Remove transform */
      width: 400px;  /* Fixed width for larger screens */
      height: 600px; /* Fixed height for larger screens */
      max-width: calc(100vw - 40px); /* Responsive max-width */
      max-height: calc(100vh - 40px); /* Responsive max-height */
      }

    @media (max-width: 480px) {

    chat-window {

    width: 100%; height: 100%; bottom: 0; right: 0; border-radius: 0; } }

Any other changes that you deem necessary for the feature to work well.

  1. Run Tests and Commit Changes

Visually test that your solution works.

Required 📋

To keep our workflow smooth, please make sure you follow these guidelines:

Thank you for your contribution 🙏

⚠️ WARNING: Failure to follow the requirements above may result in being added to the OnlyDust blacklist, affecting your ability to receive future rewards.

0xdevcollins commented 5 hours ago

Could I be assigned to this?

ShantelPeters commented 5 hours ago

Can i please be assigned to this issue @enitrat