-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Prevent progress bar overflow when uploading in Folders #1785
Conversation
3c85df5
to
4f03c60
Compare
Would it make sense to upstream to @nc/uploader ? |
Depending on the final solution, yes, but not satisfied by the current one. Let's see what @nextcloud/designers have to say :) |
Great catch! What do you think about something like this? Over here, only on mobile there is some extra space below the add button where the progress bar would appear. This gives ample space for longer text and makes sure that no other elements jump around during upload. What do you think? cc @szaimen |
Yes, I also think that moving it to the next line on mobile is the way to go 👍 |
But I would not add a big empry space in case the upload bar is not visible |
@skjnldsv I do not see any other way than emitting a |
That would kind of defeat the purpose of having a simple and universal component look. @nimishavijay the uploader design is aiming to be a standard in other locations of Nextcloud. If we start putting the progress in another location (like bellow the title), it won't work well with what we're trying to achieve I'm afraid 🤔 |
Hmm, are there examples of other places where the component is/will be used? We can try and come to a design that works for most use cases? :) |
@nimishavijay Files app for example or like Talk that is not using this component yet :) @artonge please also note that we do expose current list and progress. |
Hmm, even in Files and Talk, for the mobile view the best place does seem to be below the add/upload button/whatever element the uploader is associated with. Any other placement will give rise to the same problem as we saw. Is it totally not possible to standardise this design? Some alternatives would be to use a loading spinner instead of a progress bar on mobile, or maybe showing the uploading message in a toast notification? |
@nimishavijay what would the standard look like? Also, and that's my personal opinion, I think your mockup doesn't look polished enough from a UI perspective. The spacing is not consistent (for example; I'm guessing you just did a quick mockup in photoshop), but if we want to really make sure we can move forward, having a real final mockup to refer to for adjustments would be really helpful :) |
4f03c60
to
fa424d9
Compare
Hacky solution for now with css positioning. But it works. |
/backport to stable26 |
/backport to stable25 |
Signed-off-by: Louis Chemineau <[email protected]>
fa424d9
to
6bb7169
Compare
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.
LGTM for the meantime (but didnt test)
Fix #1682
@nextcloud/designers any idea on how to fix that nicely?