Tdesktop: Allow to resize message block in chat window

Created on 20 May 2016  路  78Comments  路  Source: telegramdesktop/tdesktop

Long messages has small width and large height, like a newspaper column. Sometimes It's hard to read such messages, also they take a lot of space on screen and make chat history less usable for me. Besides as a programmer I often send a code snippets in telegram, and it is practically impossible to read them because of small message width.

Steps to reproduce

Open chat window

Expected behaviour

User can change width of message with mouse

Actual behaviour

Message width is fixed

Configuration

Operating system:
Windows
Version of Telegram Desktop:
0.9.49

enhancement

Most helpful comment

Please, just add msgMaxWidth into settings, I really dont want to fork and compile telegram by myself just for such minor change. There are actually some chats where people write messages longer than "lol haha funny gif".

All 78 comments

Same issue. Message width adapts appropriately to narrowing window size, but stops after a certain point when expanding the window. on my screen (1920x1080), that means messages use only 1/3rd of the available space. As f1ztech pointed out, this also affects code block comments.

Same issue. Very annoying. Must fix it asap please...

Providing an example of wasted space with fixed message width.
Expected behavior would be message width maximum is maximum width of message pane.
What's the purpose of maximizing if the messages remain fixed-width?

untitled-1

Version 1.0 released and we still seeing ugly narrow column instead of code block, backtrace, etc...
I can understand such behavior on mobile client, but on my laptop with 2880x1620 resolution it is a absurd!

I vouch for this. Was waiting for it so long so I decided to make an issue. Since I didn't found this one.

Pasting code becomes really annoying with this limited width. It seems kind of contradictory to have the possibility to quote code but not being able to properly see any line with more than 52 characters. Also, some programming languages don't follow the 80 column styling, so limiting the width is limiting usability.

Just do it, please, logs and code blocks look awful

In v1.1, the client now uses more screen space on large windows to display a cluttered and distracting emoji window, and still does not let the message size increase beyond its current width.

Yay! Issue is opened for more than one year.
Seriously please fix it

Please fix it!

Please, just add msgMaxWidth into settings, I really dont want to fork and compile telegram by myself just for such minor change. There are actually some chats where people write messages longer than "lol haha funny gif".

Please, make it
@Xorboo made a good suggestion

..just use riot.im, or other matrix.org clients.

430px message width in Retina and QHD times.

Guys, please, allow us to use full width of window!

Thank you @stek29 for inviting me here, into this thread of grief. What's the point?

It's ridiculous to have an ability to mark text as code which is then gonna be screwed up anyway. I can't even paste two lines of preformatted text w/o it to be rendered to unreadable crap like this:

asd

I should say that this is not an issue even in Skype.

@OnkelTem You can use Webogram or even macOS native app (lel) for now as a workaround :)

I understand your points and frustration, but I think John has too much other stuff to do for now :(

Any updates on the issue? And @Xorboo suggestion in particular?

Basically, inability to display preformatted text properly abandons Telegram as an app for developers exchange. So it's not a matter of minor enhancement instead - this is severe issue, a show stopper. How the developers don't grasp this - I have no idea.

People have referenced this in other issues, because the decision to make the width of messages preposterously small means that either the messages have to stack against the left side of the screen, or they're super spread out with a vast gulf of nothingness between them. (And you can only toggle the super spread out view if you've currently got a chat open, AND have the window large enough that you can only see the super spread out view.)

Hey, here's an idea: What if the message width is some proportion of the width of the entire message panel, instead of the fixed-width nonsense? Say, 80% of the message window width, with the remaining 20% being the indent to the left or right, depending on the source of the message. That would fit with my intuitive understanding of what should happen when I make a window larger. What's the point of letting me maximize a window if 50% of the visual space is never used?

What if the message width is some proportion of the width of the entire message panel, instead of the fixed-width nonsense?

[with good humor] What a fresh idea! :)
Actually, this how things done nowadays (er... for the last 15 years actually). Instead, having something defined in absolute pixels raises questions. How would feel visually impaired if they want to get text bigger? How would behave an app on a wider/narrower screen?

Agreed 100%.

@OnkelTem It is not absolute, but it is fixed for a fixed font size.

@john-preston Oh, it's not that awful then :)

@OnkelTem So what`s about making a settings item for that?? The setting may be in any units, not only pixels. % of width or number of pseudo symbols or anything else.

The only reliable way to have preformatted text display properly and to avoid line break entirely is a textarea with a slider within the message that a user can scroll horizontally. This is used on all discussion platforms on the web, including github itself, and has proven to be simple and usable.

@FichteFoll forget preformattet text. It will take ages. Give us the all that easy and simple balloon width regulation.

Another vote for this please.
Posted code or log files in message is difficult to read. Can we not have a Skype-like click and drag to expand?

The problem exists about for 2 years now (#1587, #1634 etc). And nothing has changed :(

:(

Please do this. I need to send code to my friends and the width is too small.
I don't need to drag to resize. Something like "full message width" checkbox option in options that makes messages fit full width of window will be enough.

This feature request is from coders of all types.
Just add some input field in Chat Settings "Max Message Width", or make max message width 80 symbols for Monospace formatted messages, they are usually a some code.

+1
I need this function!

Durov's Channel, [17.01.19 07:56]
2018 was a great year for Telegram, but 2019 is going to be by far the most important one in our company's history.

In 2018, more and more people discovered Telegram and switched to it from services run by ad-selling IT monopolies.

As a result, Telegram became one of the few messaging apps that are enjoying significant growth globally.

Building on the success of the last year, this year we are going to implement many long-awaited product changes you have been asking for.

2019 will be the time when feature-related wishes of our users come true.

Does this apply to this project?

2019 will be the time when feature-related wishes of our users come true.

Specially this sentence applies perfectly to this issue.

Please fix this, it's the only real annoyance I have with Telegram at the moment.

I cannot believe that this issue is not yet fixed from 2016....

@hackhowtofaq you are free to create one pull request for it :)

@Aokromes guide me to the code which files need patching and I will do it....

@hackhowtofaq, @Aokromes, there was one attempt, rejected: https://github.com/telegramdesktop/tdesktop/pull/2339#issuecomment-240178293

@hackhowtofaq you are free to create one pull request for it :)

@Aokromes guide me to the code which files need patching and I will do it....

This PR will be rejected, and Aokromes know it ;)

That PR was hardcoding the change AFAIK. If a new PR is to be done it must be at least an optional setting. Also, in the PR comments @john-preston never confirmed if a PR with configurable max width for messages wouldn't be rejected.

Awaiting for this PR, for 3 years...

Native Telegram for macOS app got this working fine (it expands message blocks). So if you're on macOS, install native client instead.

We shall continue to suffer. Or use web-based client + css which is a PITA like whatsapp since it lives in the browser.

imho every input field must be resizeable.

Up!

Up!

@john-preston if this PR: https://github.com/telegramdesktop/tdesktop/pull/2339
will be configurable, would you accept it?

Another vote for this after 4 years of existence of this issue .
Is there a special reason, why you guys are not willing to fix this simple issue and ignore all claims that you have about it ?
It's really awful to have such space loose and split codes just because of not one knows why .

@john-preston if this PR: #2339
will be configurable, would you accept it?

I think there is no way to know until someone tries

ok, i have some work on it.. but it looks like my C++ skill is rusted - almost rotten :P
here are some changes: https://github.com/telegramdesktop/tdesktop/compare/dev...kudlatyamroth:feature/wide-messages?expand=1

it adds setting checkbox (default unchecked):
wide_msg_width

but smth' has broke, as if it is unchecked messages are wider then 430px

if anyone wants to work on it, or have suggestions let me know :)

PS. ideally i think that there should be input or slider with px width or even select like scale setting

I noticed the AdaptiveForWide flag in the code. Maybe it is involved somehow?

if Adaptive layout for wide screens is checked it makes chat to display all messages on left side after 880px
uncheck disables avatars in chat and its always left and right

i wonder why this adaptive checkbox not in official client, as the commits with it dating back in 2016:
https://github.com/telegramdesktop/tdesktop/commit/fc9d75b4f01fed32f3b4d5827ac47c5724ea5787

i wonder why this adaptive checkbox not in official client, as the commits with it dating back in 2016:
fc9d75b

it's when the width of the monitor is high enough.

i wonder why this adaptive checkbox not in official client, as the commits with it dating back in 2016:
fc9d75b

it's when the width of the monitor is high enough.

but there is no switch in settings in official client, but when you compile it, its like on screenshot from my comment (without Wide message width checkbox)

edit:
ahh... ok, i made telegram full screen and it showed up... thanks :)

Guys, I do not understand. New version of desktop telegram added many childish features like "catalog of over 20,000 stickers", "Send a single dart emoji to see if you hit the bullseye." or "Send to any chat to try your luck and get a random number from the animated dice."... Is it still serious communicator or a toy?

I would like to see the new important features like allowing to resize message block in chat window that we are discussing here.

Yes indeed Telegram is becoming a toy for kids, Absence of this feature is making me reconsider using Telegram at all.

I don;t understand why guys are so unwilling to make this . Is this that much hard thing ?

I second that opinion. I totally don't need stickers, dice or dart. I want configurable text width and programming language syntax highlighting in preformatted text.

I'm not having anything to add new stickers and all of the toys - its nice additions which i like :)

And i think i manage to add this small checkbox to chat settings, and it seems to work :)

Guys, I do not understand. New version of desktop telegram added many childish features like "catalog of over 20,000 stickers", "Send a single dart emoji to see if you hit the bullseye." or "Send to any chat to try your luck and get a random number from the animated dice."... Is it still serious communicator or a toy?

I would like to see the new important features like allowing to resize message block in chat window that we are discussing here.

I second that opinion. I totally don't need stickers, dice or dart. I want configurable text width and programming language syntax highlighting in preformatted text.

as for stickers, dice and dart, it's the marketing team witch adds new features platform wide, it's not preston.

And i think i manage to add this small checkbox to chat settings, and it seems to work :)

What's next with this change? Do we need to wait for the maintainer to accept it and merge to master? What chances do we have?

And i think i manage to add this small checkbox to chat settings, and it seems to work :)

What's next with this change? Do we need to wait for the maintainer to accept it and merge to master? What chances do we have?

Sadly, but - 0% :(

Do any one knows what the reason for not accepting such an important and wanted patch ?
It seems that TP developers are making "holy war" against this feature .

Guys, I think we all need to go and mark that pull request with a heart or like to let the maintainers see that the users are interested in it!

@AlexanderAmelkin totally agree. You have my heart :-)

Reading a comment by @john-preston in #2339:

This is not going to be merged, sorry. The layout like "Messages after:" was explicitly avoided by setting the maximum width of the text message bubble, because it is less readable (reading the line up till the end in the right side of the monitor you can't quickly jump to the beginning of the next line, you need to follow all the line back). When you use small width of the message layout it is easy to read.

I think #7822 won't be merged due to that. They're stuck with 1366x768 displays, probably. And doesn't care about all IT guys out there who prefer to read logs properly without breaking their eyes with such forced typography shit.

I hope I'm wrong, actually. Let's see what developers would say.

But.. that's why we have checkbox here. Unchecked by default.

Ah shit, why only monospace blocks? You just decline a very good PR just because it adds a checkbox in settings and keeps behavior identical to current release with small bubbles (unchecked by default)? Seriously?

That's ridiculous. Especially that your commit, @john-preston, fixes only a monospace thing, which is just a part of what this issue describing. Please, reopen or fix it like #7822 proposes.

As I said - no chance :(

Lol, funny situation - may be we need to fork tdesktop repo and continue the development without Telegram Developers Team? And then we just can sync codebase with upstream.

Lol, funny situation - may be we need to fork tdesktop repo and continue the development without Telegram Developers Team? And then we just can sync codebase with upstream.

Already, You can try this. I did it not only for messages, but for all content and only for adaptive layout (check box must be checked). Or you can maintain own fork with this PR changes only...

somebody hire a community manager for @john-preston 馃槅

maybe on twitter will be more conclusive response from telegram project: https://twitter.com/KudlatyAmroth/status/1260253898994069504?s=20

@john-preston could you please comment your decision? Why only monospace?

ok, if anyone wants this, i created AUR package: https://aur.archlinux.org/packages/telegram-desktop-wide/
but it not have checkbox, just set max width to 3840px

Personally I don't care about message width if it is not a code. Thus, this update is the most expected one, just wondering, why it took so long?)

You are right @banderlog. Small steps. I have downloaded 2.1.5 and for sourcecode it is working like a charm!

code is the most wanted, but it looks strange if one msg can be full width, and other can't...
this was annoying, so i created package...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Liudvikas picture Liudvikas  路  3Comments

matteotumiati picture matteotumiati  路  3Comments

Mindstormer619 picture Mindstormer619  路  3Comments

TheAppService picture TheAppService  路  3Comments

JhonSane picture JhonSane  路  3Comments