-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
[FIX] Text area buttons and layout on mobile #7985
Conversation
@@ -174,8 +181,58 @@ | |||
&__container { | |||
display: flex; | |||
|
|||
padding: 1rem 1rem calc(1rem - 8px) 1rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this calc
?
} | ||
}; | ||
|
||
Template.messageBox__actions.helpers({...methods}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can pass methods
variable directly, don't need to spread it into another object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, but we are suggesting that we can put more functions inside.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I`m sorry sir @sampaio.diego, you are right.
}; | ||
|
||
Template.messageBox__actions.helpers({...methods}); | ||
Template.messageBox__actionsSmall.helpers({...methods}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💩
sendIcon() { | ||
return Template.instance().sendIcon.get(); | ||
disableSendIcon() { | ||
console.log(Template.instance().sendIcon.get()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷♂️
@@ -9,8 +9,7 @@ | |||
return this.filter('textarea').each(function() { | |||
var self = this; | |||
var $self = $(self); | |||
var minHeight = $self.height(); | |||
var noFlickerPad = $self.hasClass('autogrow-short') ? 0 : parseInt($self.css('lineHeight')) || 0; | |||
var minHeight = 16; //$self.height(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this intentional?
@@ -54,9 +56,9 @@ | |||
} | |||
|
|||
shadow.css('width', $self.width()); | |||
shadow.html(val + (noFlickerPad === 0 ? '...' : '')); // Append '...' to resize pre-emptively. | |||
shadow.html(val); // Append '...' to resize pre-emptively. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the comment does not make sense anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your brain gets smart but your head gets dumb 🎶
const methods = { | ||
actions() { | ||
const groups = RocketChat.messageBox.actions.get(); | ||
console.log(Object.keys(groups).reduce((ret, el) => ret.concat(groups[el]), [])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷♂️
cb84955
to
b5fadc8
Compare
b5fadc8
to
12311ae
Compare
12311ae
to
433be20
Compare
[FIX] Text area buttons and layout on mobile
@RocketChat/core
Closes #7935