Skip to content

Converts em to px values for styles in Files. - #5152

Merged
jancborchardt merged 9 commits into
masterfrom
files-em-to-px
Jan 27, 2014
Merged

jancborchardt merged 9 commits into
masterfrom
files-em-to-px

Conversation

@raghunayyar

Copy link
Copy Markdown
Contributor

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

@jancborchardt

Copy link
Copy Markdown
Contributor

This is also ownCloud 7 as it’s past feature freeze and this has the potential to break stuff. :)

@jancborchardt

Copy link
Copy Markdown
Contributor

@raghunayyar can you rebase this branch? Then we can test @owncloud/designers – it’s just a few changes and should be fine.

@ghost ghost assigned raghunayyar Jan 10, 2014
Conflicts:
	apps/files/css/files.css
@PVince81

Copy link
Copy Markdown
Contributor

This seems to break the trashbin (Firefox):
trashbinalign

Either this or you need to rebase onto master to get the latest styles where it might be fixed already.

@raghunayyar

Copy link
Copy Markdown
Contributor Author

@PVince81 I just fixed this issue. It works fine on my Chrome and Firefox. Please check! cc @jancborchardt

@PVince81

Copy link
Copy Markdown
Contributor

@raghunayyar did you not test in gasp IE ? 😉

@PVince81

Copy link
Copy Markdown
Contributor

It's broken differently now on Firefox 26:
firefoxtrashbinmisaligned

Look closely, you'll see that the grey lines aren't aligned.

@raghunayyar

Copy link
Copy Markdown
Contributor Author

I have access to IE 10.0 for Windows 8. It works fine there. @PVince81

@raghunayyar

Copy link
Copy Markdown
Contributor Author

@PVince81 that's strange, it looks perfect to me on FF 26 (on Mac). Here is the zoomed in view.
screen shot 2014-01-16 at 3 33 43 pm 1
and

screen shot 2014-01-16 at 3 33 49 pm

@PVince81

Copy link
Copy Markdown
Contributor

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.
@PVince81

Copy link
Copy Markdown
Contributor

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).
Fix is in above commit.

@raghunayyar I noticed that the trashbin app has lost its file list header. Can you have a look ? (it's fine on master)

@raghunayyar

Copy link
Copy Markdown
Contributor Author

@PVince81 Just fixed.

@PVince81

Copy link
Copy Markdown
Contributor

trashbinheaderbroken

Firefox + Chrome on Linux.
Please have a look.

@PVince81

Copy link
Copy Markdown
Contributor

Forgot to capture the scrollbars: it's scrolled to the top.

@raghunayyar

Copy link
Copy Markdown
Contributor Author

This is working fine on my Mac Chrome and FF. :
screen shot 2014-01-16 at 10 11 10 pm

@PVince81

Copy link
Copy Markdown
Contributor

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 ?

@raghunayyar

Copy link
Copy Markdown
Contributor Author

Screenshot above.

@PVince81

Copy link
Copy Markdown
Contributor

I was talking about the trashbin header

@raghunayyar

Copy link
Copy Markdown
Contributor Author

even that is fine :
screen shot 2014-01-16 at 10 17 19 pm

@PVince81

Copy link
Copy Markdown
Contributor

Can you check your chrome inspector and see wether the "top: -35px" rule is enabled ?
It is for me. If I remove it, everything looks fine.
Look like that "top" value should be removed completely.

@PVince81

Copy link
Copy Markdown
Contributor

Remove both trash-controls and trash-filestable completely and the header appears correctly.
It was broken in Firefox 26 (Linux), Chromium 31 (Linux), IE 8, Firefox (WinXP), Firefox (Ubuntu)

@PVince81

Copy link
Copy Markdown
Contributor

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.

@PVince81

Copy link
Copy Markdown
Contributor

I can confirm that removing these lines work in IE9, IE10, IE11 as well (whereas before it was broken).
If that fix also works on your Mac, then let's go with that ?

@raghunayyar

Copy link
Copy Markdown
Contributor Author

@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. :)

Comment thread apps/files/css/files.css Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jancborchardt yes, its only about converting. nothing new here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@kabum I can't reproduce still.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@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. :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

But the display:block line here and the height line below are shown as new?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done ;)

Comment thread core/css/styles.css Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's a comment and is added ... please remove ;)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I will fix this and push to the branch

@MorrisJobke

Copy link
Copy Markdown
Contributor

I'm fine with that 👍 (Chromium 32, Firefox 26, IE9, IE10)

@ghost

ghost commented Jan 18, 2014

Copy link
Copy Markdown

@PVince81

Copy link
Copy Markdown
Contributor

Tested in:

  • Firefox (WinXP/Linux)
  • Chromium (Linux)
  • IE8
  • IE9
  • IE10

It all seems to look ok except for the following:

Before (master):
menuspacingbefore
After:
menuspacingafter

Is it intentional that the spacing of the file menu is bigger now ?

@raghunayyar

Copy link
Copy Markdown
Contributor Author

@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.

@PVince81

Copy link
Copy Markdown
Contributor

@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

@raghunayyar

Copy link
Copy Markdown
Contributor Author

@PVince81 bingo, should I count that as one 👍 now? its been a while :D

@PVince81

Copy link
Copy Markdown
Contributor

Here you go 👍

jancborchardt added a commit that referenced this pull request Jan 27, 2014
Converts em to px values for styles in Files.
@jancborchardt
jancborchardt merged commit 6fbc73e into master Jan 27, 2014
@jancborchardt
jancborchardt deleted the files-em-to-px branch January 27, 2014 10:28
@jancborchardt

Copy link
Copy Markdown
Contributor

Looks good to me too. Finally we got this! :)

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants