Repository navigation
Converts em to px values for styles in Files. - #5152
Conversation
|
This is also ownCloud 7 as it’s past feature freeze and this has the potential to break stuff. :) |
|
@raghunayyar can you rebase this branch? Then we can test @owncloud/designers – it’s just a few changes and should be fine. |
Conflicts: apps/files/css/files.css
|
@PVince81 I just fixed this issue. It works fine on my Chrome and Firefox. Please check! cc @jancborchardt |
|
@raghunayyar did you not test in gasp IE ? 😉 |
|
I have access to IE 10.0 for Windows 8. It works fine there. @PVince81 |
|
@PVince81 that's strange, it looks perfect to me on FF 26 (on Mac). Here is the zoomed in view. |
|
Strange. Now I've noticed that the files app also have that issue. This is on openSUSE 13.1 with Firefox 25. With Firefox 26 on Windows XP it works fine. Still, I think there is anyway something unclean and hacky about the way how the heights are set there. It could be that Linux/KDE uses a slightly different font (fallback?) which causes the height to be slightly different. We'd better set an exact height on the element if not already. |
Firefox is using native checkboxes and in KDE the checkboxes have a bigger height which caused the row height to increase and be misaligned with the date column. This fix makes the checkbox absolute to prevent it to influence the row height.
|
The issue was that the checkboxes in KDE have a bigger height and Firefox uses the native style. The checkbox was pushing the tr's height to 54px (instead of 51px). @raghunayyar I noticed that the trashbin app has lost its file list header. Can you have a look ? (it's fine on master) |
|
@PVince81 Just fixed. |
|
Forgot to capture the scrollbars: it's scrolled to the top. |
|
Better test in IE and Firefox on Windows as well to be sure, especially for such changes related to CSS and dimensions. I tried IE8 in a VM and it's the same. Can you paste a screenshot in case it's related to the number of files ? |
|
Screenshot above. |
|
I was talking about the trashbin header |
|
Can you check your chrome inspector and see wether the "top: -35px" rule is enabled ? |
|
Remove both trash-controls and trash-filestable completely and the header appears correctly. |
|
Not sure why these were added in the first place ? As far as I know the controls bar has the same position for files and trashbin, maybe there was an older situation where it was broken. Will post IE results soon. |
|
I can confirm that removing these lines work in IE9, IE10, IE11 as well (whereas before it was broken). |
|
@PVince81 bingo, i dont remember why I had made those classes. Something might be conflicting at that moment. It works for me too now. thanks a lot for the help. :) |
There was a problem hiding this comment.
This causes the header to be there even if the header shouldn't be displayed. How to reproduce: create a new folder and go inside
There was a problem hiding this comment.
Yeah, @raghunayyar if the pull request is about converting it should only convert stuff, not add something. :) Also the height:51px below here belongs in a separate pull request.
There was a problem hiding this comment.
@jancborchardt yes, its only about converting. nothing new here.
There was a problem hiding this comment.
@jancborchardt : height:51px issue is related to this PR only, font conversion in px pushes the td up by some px in KDE. @PVince81 found out and added a patch here. :)
There was a problem hiding this comment.
But the display:block line here and the height line below are shown as new?
There was a problem hiding this comment.
It's a comment and is added ... please remove ;)
There was a problem hiding this comment.
I will fix this and push to the branch
|
I'm fine with that 👍 (Chromium 32, Firefox 26, IE9, IE10) |
|
Test passed. |
|
@PVince81 it happens with the conversion factor here : https://github.com/owncloud/core/pull/5152/files#diff-bb10e776e76087440b4aeccb0e18b927R49 , do you want me to change it? I guess it looks fine to me. |
|
@raghunayyar as you like, I just wanted to make sure that you (and other reviewers) are aware of that change and that it is intentional, not a side effect / bug |
|
@PVince81 bingo, should I count that as one 👍 now? its been a while :D |
|
Here you go 👍 |
Converts em to px values for styles in Files.
|
Looks good to me too. Finally we got this! :) |









This was pending even when we were releasing OC5.
Tweaks the em values and converts to px as per 1em = 16px.
Makes the styles absolute.
@jancborchardt @karlitschek @owncloud/designers