Skip to content

Conversation

@skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Apr 7, 2023

First commit is moving css around
The real code to review is in the second 7f3abbe

Peek.07-04-2023.13-31.mp4

@jancborchardt @nimishavijay

Reference #37627 #36534
PS: I'll wait before compiling assets to avoid rebasing

@skjnldsv skjnldsv requested a review from a team April 7, 2023 11:33
@skjnldsv skjnldsv self-assigned this Apr 7, 2023
@skjnldsv skjnldsv requested review from Pytal, artonge and szaimen and removed request for a team April 7, 2023 11:33
@skjnldsv skjnldsv added this to the Nextcloud 27 milestone Apr 7, 2023
@szaimen
Copy link
Contributor

szaimen commented Apr 11, 2023

I guess the multiselect buttons should also collapse? Apart from that looks good to me! :)
See image

@skjnldsv
Copy link
Member Author

Good catch Simon!! 🚀

@nimishavijay
Copy link
Member

Very cool! Looks great in the screenshot, and completely agreed with Simon! :)

@skjnldsv skjnldsv force-pushed the fix/reactivity-files branch from 7f3abbe to f9d9938 Compare April 11, 2023 13:14
@skjnldsv
Copy link
Member Author

skjnldsv commented Apr 11, 2023

Done

(ignore the fake favorite action added for this example only)

Peek.11-04-2023.15-08.mp4

@skjnldsv skjnldsv changed the base branch from master to feat/files-right-click April 11, 2023 13:15
Copy link
Contributor

@szaimen szaimen 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 :)
(but didnt review the code)

Base automatically changed from feat/files-right-click to master April 11, 2023 13:47
@skjnldsv skjnldsv force-pushed the fix/reactivity-files branch from f9d9938 to 5b979e5 Compare April 11, 2023 13:50
@skjnldsv skjnldsv force-pushed the fix/reactivity-files branch from 5b979e5 to 306bc2a Compare April 12, 2023 10:11
Comment on lines +133 to +138
if (this.clientWidth < 480) {
return 1
}
if (this.clientWidth < 768) {
return 2
}
Copy link
Contributor

Choose a reason for hiding this comment

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

How is this behaving with the sidebar opened ?
Could we use the container width instead of the client's width?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, would it make sense to have the hiding logic inside nc/vue instead of here?

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 used the values files had before.
It's fair to raise the question a bit more widely I think yes :)

When you say sidebar, you mean navigation or sidebar? (because I've seen it being used for both)

  • If Navigation, the sidebar is floating on mobile, so it doesn't affect the main view which takes 100%
  • If you say Sidebar (right), the Sidebar takes the full width on mobile, but we should definitely change those values if the sidebar is opened (see the video below)
Peek.12-04-2023.17-46.mp4

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 would merge this and improve the sidebar after raising the topic in another PR? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@artonge artonge Apr 12, 2023

Choose a reason for hiding this comment

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

Yes, I meant the right Sidebar. I am asking for the number of displayed actions. The sidebar reduce the width of the container, but the logic is based on the width of the client window, so it might not work as expected.

My advice would be to use a resize observer on the list container instead of the resize event on the window.
https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver

Copy link
Contributor

Choose a reason for hiding this comment

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

As you which, the current behavior is still better than nothing ;)

Copy link
Member Author

@skjnldsv skjnldsv Apr 12, 2023

Choose a reason for hiding this comment

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

After looking around, WOW, you're 100% right Louis, we can do better 👍
I will prepare an issue with RFC and screenshots,

Copy link
Member Author

Choose a reason for hiding this comment

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

@skjnldsv skjnldsv merged commit f37b29e into master Apr 12, 2023
@skjnldsv skjnldsv deleted the fix/reactivity-files branch April 12, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants