Skip to content

Conversation

@sazanof
Copy link
Collaborator

@sazanof sazanof commented Jun 6, 2022

Hello! I will be glad if my PR will be useful in some way. Resolves #5768
Attachments_new2
Of the possible nuances of implementation:

  • It is not possible to generate previews of downloaded files (except images)
  • If at the time of downloading some large file you try to download the same file in parallel - the previous download stops. However, if you move Vue.set(this, 'uploads', {}) in complete(), then due to the fact that it is impossible to correctly identify the necessary object from two identical ones, the progress bar is buggy
  • There is no possibility (yet) to show the beginning of the selection of cloud files ...

There is a parallel PR #6310 which is related to this. It may be worth using the same component to display the attachment.

If you have the opportunity, please take a look and give your comments. Thanks!

BTW the previous version was a bit in a different style =) :
image

And yes, maybe I overdid it a bit in the code (he shrugs his shoulders)
Signed-off-by: Mikhail Sazanov [email protected]

@sazanof
Copy link
Collaborator Author

sazanof commented Jun 17, 2022

I found bug, when forwarding - attachments not load. I forgot about this moment. I'll fix it soon.

@sazanof sazanof force-pushed the enh/attachments-style-mod branch from 12aa643 to 97b869d Compare June 17, 2022 08:58
@st3iny st3iny mentioned this pull request Jun 17, 2022
2 tasks
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

Tested and works so far. Overall, it already looks like the mockups. Good job!

General feedback

  1. Please rename src/components/Attachment.vue to src/components/ComposerAttachment.vue to clearly differentiate the component from thread envelope attachments.

@sazanof sazanof force-pushed the enh/attachments-style-mod branch 2 times, most recently from 77feea5 to 996e4fe Compare June 17, 2022 11:19
@sazanof sazanof requested a review from st3iny June 17, 2022 11:21
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

Very nice! One minor thing is left: Please remove font-weight: bold from the file name and we are ready to go.

Signed-off-by: Mikhail Sazanov <[email protected]>
@sazanof sazanof force-pushed the enh/attachments-style-mod branch from c23bc83 to 258ea67 Compare June 17, 2022 11:57
@sazanof
Copy link
Collaborator Author

sazanof commented Jun 17, 2022

Very nice! One minor thing is left: Please remove font-weight: bold from the file name and we are ready to go.
Done!
image

Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

All good! Thanks again.

@st3iny st3iny merged commit 21312a0 into nextcloud:main Jun 17, 2022
@sazanof sazanof deleted the enh/attachments-style-mod branch June 17, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

Improve the way attachment look

2 participants