Repository navigation
[WIP] Mobile optimization for base layout and Files app - #7724
Conversation
|
@DeepDiver1975 @PVince81 I really need your help here. :) For all reviewers who want to check out more mobile styles: |
…re', 'action-rename' in order to allow proper translations of the action's display name an additional parameter has been added to the register function
|
@jancborchardt action classes have been added |
|
@jancborchardt how do you detect mobile, media queries? |
|
Here you go. I've used the same query as in your CSS. |
|
@DeepDiver1975 thanks! Fixed some other CSS so now the actions are really hidden. @PVince81 thank you too! :) There are 2 bugs at the moment though:
|
|
Yes I knew that when implementing it, but I don't think that's a use case ? |
|
Changing from portrait to landscape mode comes to mind. :) Also, people do resize windows on the desktop as well. Be it to put it to the side (like fill half the screen) or stuff like that. So it would be better if that works I think. |
|
Ok, fair enough. I guess this can be achieved with a resize detection. |
|
It took longer than expected because the complexity is higher than I thought, so I added unit tests for that part as well. See above commit. |
|
Only tested in Chrome... but IE8 should be fine, it shouldn't even enter that block. |
|
PhantomJS doesn't seem to like media queries. Looking into it. |
PhantomJS has a bug that makes it impossible to properly stub window.matchMedia. This fix adds a wrapper as OC._matchMedia that is used for unit tests
|
I've fixed the unit tests to deal with the PhantomJS matchMedia bug. |
The unit test stub didn't work because the _matchMedia wrapper was defined too late. This fix defines it earlier.
|
Ok, I fixed some stuff: @jbtbnl the app title length and multiselect bar shift you mentioned. And @butonic I hid the »Deleted Files« button on mobile because it takes space and that view isn’t optimized yet anyway. @butonic what do you mean by »the delete button no longer works (master does)«? The multiselect delete? Any idea why it doesn’t work? |
|
@jancborchardt in the filelist try to delete a file by clicking the x to the right of an individual file. Nothing happens here :( |
|
Oh there is a JS error: |
Oh - that was me I guess - sorry for the mess |
|
@jancborchardt some more ideas:
|
|
Looks good now on S3 stock browser - nasty whitespace above the controls is gone. |
|
@jbtbnl from the issues you mentioned, I think the breadcrumbs one is interesting. And there are some I would disagree with:
|
|
I would say we should merge this before this pull request gets too big again. Any additional enhancements or issues we can fix separately. A final review please @owncloud/designers |
|
@jancborchardt yes, it's better to merge this and then handle additional stuff separately. As for the menu animation, it's just way too slow on my BlackBerry Q10 and therefore annoying. I'm not against the animation but I'm certainly against bad performance :) |
|
A new inspection was created. |
|
👍 Tested on
Upload just works fine. |
|
🚀 Test Passed. 🚀 |
|
@DeepDiver1975 if there are no objections in the next 4 hours, let’s merge? cc @owncloud/designers |
[WIP] Mobile optimization for base layout and Files app


🚧 Stuff left to do:
action-renameetc. @DeepDiver1975 need your help. :)And probably some more stuff I missed.
@karlitschek please check if the approach is fine in general.