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

Adapted attachment input component to use Bulma CSS styling, show nam… #694

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zreactor
Copy link
Collaborator

@zreactor zreactor commented Sep 2, 2018

…e of attached file under preview icon, add .sass-lint.yml (TODO)

In addressing issue #594

…e of attached file under preview icon, add .sass-lint.yml (TODO)
@zreactor zreactor requested review from whitphx and hup-en September 2, 2018 10:49
@zreactor zreactor mentioned this pull request Sep 2, 2018
Copy link
Collaborator

@whitphx whitphx left a comment

Choose a reason for hiding this comment

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

😃

@@ -177,6 +177,7 @@ class AttachmentViewerComponent extends Component {
return (
<div key={m.id} className="column is-narrow">
{content}
<div>{m.name}</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please handle the case where the filename is too long?
2018-09-02 22 40 49

I think it's good to insert ... into the middle of filename like TOO_LO...AME.png

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh! Got it, will do :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Please pull newest changes & take a look

const meta = Array(files.length);
const attachments = {};
const idPromises = Array(files.length);
for (let i = 0; i < files.length; i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you change it?
Yes, this is no problem and, in practice, these are equivalent and there is no strong reason to choose the one.
Therefore I think I can't find the reason to change it.

@zreactor zreactor self-assigned this Sep 16, 2018
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.

2 participants