-
Notifications
You must be signed in to change notification settings - Fork 687
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
Add textarea support #379
Add textarea support #379
Conversation
9fe68c7
to
b81fef9
Compare
Just tested, this is nice! 👍 Also nice use of flexbox. EDIT: Would it be possible to keep nick/send buttons at the bottom when the textarea grows? |
Sure, done. Also fixed themes, I had forgotten about them >.> |
I'd vote for parsing each line for commands still. I do an awful lot of multiline stuff on desktop with commands. |
That's my opinion too. If we were to somehow parse commands differently and support multiline arguments, we would only introduce odd bugs. The current solution is fine. |
FYI, I'm planning to review this ASAP :-) |
@astorije You still wanting to be second reviewer? Not trying to rush you, just would like it in reasonably soon :-) if you aren't bothered, I could probably take the second review in the next few days. But I don't want to steal it from you if you are planning to do it at the weekend or whatever. |
@YaManicKill, feel free to review if you want, but I really would like to give it a stab whenever I get the chance to :-) I'm hoping end of this week or early next week. |
Nice! Noticed two things right off the bat; |
So, I finally got to play a little bit with this. I also checked out #330 and ran it on the side to test when behavior seemed off or simply by curiosity of how differently it would act. I noticed the following things that bugged me when I tested this PR:
That's a lot of comments for a first test, but clearly the most annoying points are the first two and I'd be happy to give a +1 when these 2 are fixed. All others can be addressed in later PR(s). Thanks for this, @maxpoulin64 (and @YaManicKill), I can't wait to have this in, it's gonna be a great enhancement!! |
Yes, this have been done on purpose. I prefer this behavior myself as it's more consistent with what every other IRC client do, and it reduces the impression that the user can type in as much as they want. I can change it if you prefer, it's just a CSS property (which I can put it back the way I like in custom CSS afterwards). I originally changed it that way because multiline text on mobile just feels odd and takes most of the remaining screen estate. So I opted for the compact way.
I have noticed that too, but assumed that was just the way textareas worked. I'll investigate further, as I definitely noticed that on mobile. I just assumed it was because it was horizontal scrolling, haven't tried vertical.
That's the default, but thankfully an easy change
That was requested by @xPaw above, and I agree with him on this one (was previously vertically centered). Not obvious right away on desktop, but it quickly does on mobile because that means the send arrow is right up the keyboard. Having both down is nice for consistency.
Right now I have it limited to a third of the total screen height, so it's variable. I can limit it to a predefined height, but a set line count is a bit harder as we don't have access to individual lines but only the element's height. It's already pretty tricky to make that bastard size properly ;) |
Oh, yes please! ❤️ |
Agreed |
Hi, as a data point; we use IRC for our team communications, and we need to be able to send arbitrary amount of messages when we do our stand ups. Actually, this is the only remaining feature to recommend the use of thelounge |
0ce39de
to
4e9acc9
Compare
@astorije: Just updated. Now always multiline, supports touch scrolling (was a silly bug). Line height has been set to 1.5, should be good enough. Should also fix some sligh alignment issues, I'm now using the flexbox to align the textarea instead of relying on the padding (since scrolling apparently doesn't account for the padding for some reason). |
Amazing job, @maxpoulin64! I know a lot of folks will be happy about this :-) |
🎆 🎉 |
🎇🎆🎉🎆🎉🎆🎇 |
Add textarea support
Fix slight bugs introduced by thelounge#379 and thelounge#465
Attemps to do the exact same thing as #330, but in a way I find is a lot more reliable and way less overengineered.
/quote
someone might disable those and turn it into a flaw)Slight note: I'm wondering if when sending multiline messages, we should automatically assume it's a multiline message and not attempt to parse commands at all. Thoughts?