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

Mobile View of reactions partly off-screen when translation option is active #212

Merged
merged 13 commits into from
Aug 12, 2024

Conversation

odkhang
Copy link
Collaborator

@odkhang odkhang commented Aug 7, 2024

Fixes #205

Summary by Sourcery

Fix the issue where the reactions bar is partly off-screen on mobile view when the translation option is active. Enhance the layout and positioning of elements within the ReactionsBar and AudioTranslationDropdown components for better user experience.

Bug Fixes:

  • Adjust the positioning of the reactions bar to prevent it from being partly off-screen when the translation option is active on mobile view.

Enhancements:

  • Modify the dimensions and positioning of elements within the ReactionsBar component for better alignment and visibility.
  • Update the AudioTranslationDropdown component to improve layout and spacing.

@odkhang odkhang marked this pull request as ready for review August 7, 2024 10:55
Copy link

sourcery-ai bot commented Aug 7, 2024

Reviewer's Guide by Sourcery

This pull request addresses the issue of the mobile view of reactions being partly off-screen when the translation option is active. The changes include adjusting the layout and positioning of the reactions bar and its components, updating the AudioTranslationDropdown component layout, and reordering components in the room view for better UI flow.

File-Level Changes

Files Changes
webapp/src/components/ReactionsBar.vue
webapp/src/views/rooms/item.vue
Adjusted the layout and positioning of the reactions bar and its components to ensure they are properly aligned and visible, especially when the translation option is active.
webapp/src/components/AudioTranslationDropdown.vue
webapp/src/views/rooms/item.vue
Updated the AudioTranslationDropdown component layout and integrated it near the reactions bar for a cohesive user experience.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@odkhang
Copy link
Collaborator Author

odkhang commented Aug 7, 2024

reaction bar not expanded

image

expanded

image

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @odkhang - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider avoiding the use of !important in CSS as it can lead to specificity issues. Try restructuring your selectors for better specificity instead.
  • The z-index of 9000 seems arbitrarily high. Consider implementing a z-index management system to avoid potential layering issues in the future.
  • There's some commented-out code in the diff. If this code is no longer needed, it's best to remove it entirely rather than leaving it commented out.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -52,21 +52,27 @@ export default {
border-radius: 24px
padding: 4px
transition: transform .3s ease
z-index: 9000
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Consider using a lower z-index value

While it's important to ensure the reactions bar is visible, a z-index of 9000 seems unnecessarily high. Consider using a lower value that still achieves the desired stacking order without potentially conflicting with other high z-index elements.

Suggested change
z-index: 9000
z-index: 100

@mariobehling
Copy link
Member

Please share screenshots

@mariobehling
Copy link
Member

Currently it is like that and there is a lot of unused white space. Therefore the minimisation/expansion is not really nceessary, is it?

Screenshot from 2024-08-09 01-44-30

Expected would be something like this

355786330-e5ef6efc-2db5-431d-9a1c-ddc25106f1cf

@odkhang
Copy link
Collaborator Author

odkhang commented Aug 9, 2024

Hi @mariobehling, here the screenshot

image

image

minimisation/expansion is not really nceessary, is it?

-> okay, I will disable expand for reaction bar, make it expanded by default

@mariobehling mariobehling merged commit 64f619f into fossasia:development Aug 12, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mobile View of reactions partly off-screen when translation option is active
3 participants