EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

Fix: Removed extra top space for audio and video messages to improve UI consistency

Open dhairyashiil opened this issue 1 year ago • 9 comments

Brief Title

Removed Extra Space Above Audio and Video Messages

Acceptance Criteria fulfillment

  • [X] Remove the unnecessary space above audio and video messages to make the UI consistent with text and file messages.
  • [X] Verify that the change does not introduce any issues with other message types or UI elements.

Fixes #727 Fixes #768

Video/Screenshots

https://github.com/user-attachments/assets/db905263-3187-4e12-81ea-bdb789952665

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-728 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

dhairyashiil avatar Dec 24 '24 12:12 dhairyashiil

Hey @dhairyashiil, can you do one thing? just quote an audio or video message and show me the ui look.

devanshkansagra avatar Dec 25 '24 07:12 devanshkansagra

Hey @dhairyashiil, can you do one thing? just quote an audio or video message and show me the ui look.

Hello Devansh (@devanshkansagra), when I tried to quote an audio or video message, I noticed that there was no space present, and the UI didn't look good.

I have fixed it now. Thank you for pointing it out.

I have attached the latest screenshots that were taken after the recent commit.

image

and

image

dhairyashiil avatar Dec 25 '24 16:12 dhairyashiil

Pls resolve conflicts

Spiral-Memory avatar Jan 01 '25 14:01 Spiral-Memory

After the recently merged PRs,

The download ActionButton was not looking consistent with UI, I fixed it as well.

Before fixing it: image

After fixing it: image

dhairyashiil avatar Jan 01 '25 21:01 dhairyashiil

Pls resolve conflicts

The conflicts have been resolved. Please review the changes. Thank you

dhairyashiil avatar Jan 01 '25 21:01 dhairyashiil

Hay @dhairyashiil, have you tested it with other ui like curved variants?

devanshkansagra avatar Jan 02 '25 04:01 devanshkansagra

Hay @dhairyashiil, have you tested it with other ui like curved variants?

Hello Devansh, I didn’t check that yesterday, but yes, for the curved variants, it looks consistent.

I just checked the case when a description is present for audio and video messages, and I noticed the download button wasn’t inline. I’ve handled this case and added conditional CSS: image

Now the UI looks even more consistent.

dhairyashiil avatar Jan 02 '25 06:01 dhairyashiil

Curved Variant (Aqua Breeze):

https://github.com/user-attachments/assets/819cb5b4-a52f-44dc-922f-b0dcda905e42

dhairyashiil avatar Jan 02 '25 06:01 dhairyashiil

Hello @Spiral-Memory, I have resolved all the merge conflicts.

Here is the UI after the last commit:

https://github.com/user-attachments/assets/6e878532-baf3-44c9-bf9f-89310f2de3ee

dhairyashiil avatar Jan 05 '25 15:01 dhairyashiil