tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

recation preview is displayed behind the reactions panel

Open RememberTheAir opened this issue 1 year ago • 3 comments

Steps to reproduce

  1. react to a message
  2. hold LMB on a reaction to repview it

Expected behaviour

the big reaction preview is shown in foreground

Actual behaviour

the big reaction is displayed behind the reactions picker:

https://github.com/user-attachments/assets/c3205093-42ea-498b-827d-61272b10e80f

Operating system

Windows 10

Version of Telegram Desktop

5.4.6

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

RememberTheAir avatar Sep 05 '24 12:09 RememberTheAir

I'm going to bump this, since I assume it's a trivial issue that hasn't reached the devs. Can reproduce on beta 5.5.7

RememberTheAir avatar Oct 01 '24 07:10 RememberTheAir

@RememberTheAir This isn't trivial, unfortunately. The reactions menu is a separate window which is above the main window, while the preview widget is part of the main window which is why there is no way for it to appear above the reactions menu without some major changes to how all this works :/

john-preston avatar Oct 01 '24 07:10 john-preston

oh okay, thanks for the explanation and sorry for the bump

RememberTheAir avatar Oct 01 '24 07:10 RememberTheAir

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

github-actions[bot] avatar Mar 31 '25 02:03 github-actions[bot]

unstale

RememberTheAir avatar Apr 01 '25 07:04 RememberTheAir

Been seeing this in the Linux Desktop client too, currently 6.0.2.

I found a workaround tho which makes me happy again.  See if it works for the Windows client?

The trick is to get the reaction menu to open a sufficiently far distance from the messages center, where the reaction preview is displayed.

I found some different ways to accomplish this.  One is to maximize the Telegram Desktop app, this will put the messages on the left side of the screen.  Shrink the list of your messages so they're just icons to move the chat messages even further to the left.  Now right-click on the left edge of the message you want to react to, like this:

Image

Now the popup is far enough from the center and reaction preview is fully visible:

Image

Another way, without maximizing Telegram window, is to make sure there is suitable space between right edge of Telegram Window and your screen.  Then, right-click on right edge of message you want to react to.  If there's enough space, the reaction popup will open mostly outside the Telegram window, leaving room for the reaction preview:

Image

Image

scarlion1 avatar Aug 26 '25 15:08 scarlion1

Here is a nightly build with changes related to this issue.

https://github.com/telegramdesktop/tdesktop/actions/runs/17574832191

23rd avatar Sep 09 '25 08:09 23rd

The reaction preview is shown above the panel as expected, so yeah it behaves correctly. Not sure if it is expected but from this build, the reactions panel interaction is laggy, especially when you right-click on a message or preview an emoji for the first time

RememberTheAir avatar Sep 09 '25 09:09 RememberTheAir

@RememberTheAir This isn't trivial, unfortunately. The reactions menu is a separate window which is above the main window, while the preview widget is part of the main window which is why there is no way for it to appear above the reactions menu without some major changes to how all this works :/

this is super mega old bug which is annoying..

OK, no worries about reimplementation, but could you at least add offset(margin) from that reaction menu (separate window), e.g. show it on top coordinates + offset required for "preview" while reaction menu (as case) is located right now somewhere in the middle or bottom, do the same for other scenarios (always checking boundaries and show it on corresponding place), just don't put it in center and make it visible in any case. (Possible positions : 4x, at each side of rectangle, depends on condition of boundaries)

VetaLioSTV avatar Sep 15 '25 12:09 VetaLioSTV

@VetaLioSTV https://github.com/telegramdesktop/tdesktop/actions/runs/17574832191

23rd avatar Sep 15 '25 12:09 23rd