Skip to content
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

Merged
merged 4 commits into from
Aug 30, 2017
Merged

Conversation

ggazzo
Copy link
Member

@ggazzo ggazzo commented Aug 30, 2017

@RocketChat/core

Closes #7935

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-7985 August 30, 2017 17:24 Inactive
@ggazzo ggazzo temporarily deployed to rocket-chat-pr-7985 August 30, 2017 17:28 Inactive
@@ -174,8 +181,58 @@
&__container {
display: flex;

padding: 1rem 1rem calc(1rem - 8px) 1rem;
Copy link
Member

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});
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member Author

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});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Member Author

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());
Copy link
Member

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();
Copy link
Member

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.
Copy link
Member

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

Copy link
Member Author

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]), []));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♂️

@ggazzo ggazzo added this to the 0.59.0-rc.3 milestone Aug 30, 2017
@ggazzo ggazzo temporarily deployed to rocket-chat-pr-7985 August 30, 2017 19:06 Inactive
@ggazzo ggazzo temporarily deployed to rocket-chat-pr-7985 August 30, 2017 19:08 Inactive
@rodrigok rodrigok changed the title Text area mobile [FIX] Text area buttons and layout on mobile Aug 30, 2017
@rodrigok rodrigok merged commit ff75c3b into develop Aug 30, 2017
@rodrigok rodrigok deleted the text-area-mobile branch August 30, 2017 21:00
rodrigok added a commit that referenced this pull request Aug 30, 2017
[FIX] Text area buttons and layout on mobile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

message box on mobile/small screens
4 participants