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
Fix for progressbar styling #477
Conversation
Modified the styling for the progressbar as the last fix didn't seem to work in latest updates of Chrome.
@@ -98,8 +98,10 @@ | |||
</div> | |||
|
|||
<div class="umb-panel-body with-footer"> | |||
<div style="height: 10px; margin: 10px 0px 10px 0px" class="umb-loader" | |||
ng-hide="active() == 0"></div> | |||
<div class="umb-loader-wrapper" style="position:relative; margin: 0px -20px;"> |
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.
I'd like to see this styles as part of the css/less files instead of inline styles. It's ok to hack inline styles in the legacy webforms stuff but we need to keep the new angular files clean.
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.
There are already multiple files of the new view files with inline style to override umb-loader class 1px hight.
And here I needed to override the absolute position here, so it push down the folder and image thumbs as it do now, when the progressbar is visible. But there could of course be added an additional class with position: relative; margin: 0px -20px; after the umb-loader-wrapper class to override these styling.
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.
Yeah i know, i'd like to try to avoid that as much as possible so please keep this in mind for any future PRs,
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.
Yes, I agree that inline styling should be avoid as possible. I have also tried to define the progressbar with a simular markup and moved the styling to umb-loader-wrapper.
This has all been merged in, however can you please double check that this merge is correct? |
Hi @Shandem It seems to be right :) thanks for fixing this 👍 |
Great, if you get a chance it would be really great if you can test the latest 7.2 with these changes to double check it's all working. Thanks! |
So the nightly build UmbracoCms.7.2.0-build.158.zip has included these changes? I'll test it later today then :) |
They've only been made an hour or so ago, so not sure if a nightly has them included yet. |
Building 159 now, that will have the changes |
I have tested with 160 and it looks great - just a few things to modify: In sort.aspx: In installedPackage.aspx: In installer.aspx: Then it should be okay 👍 |
Made those changes: 7368cc6 The prog bars seem good to me when testing, let me know if they are correct |
It seems to be right.. I'll can test it in a new nightly build. |
I just tested with nightly build 162. The progressbar for sorting looks okay, it just need a Otherwise it looks good in IE, Firefox and Chrome, where they all need that small change to the margin-bottom, but actually I only think it's relevant is there is content below the progressbar in the sorting panel (so the progressbar not is on top of e.g. text), but you probably won't notice this now, because the content below is hidden when you click the save-button. |
If you remove display: none; in the DOM for the progressbar in sorting panel, you can see the difference with |
Any chance you can create another PR for the required changes? Sent from my phone
|
The only change I would make (just in case some content added below the progressbar) is this line from 10px til 35px :)
|
I the latests nightly builds the installer progressbar (when you load and install a package), seems to have an earlier version of the code.. perhaps something else have been merged, which merge have overwritten this? Previously the class umb-loader-wrapper had position relative and negative for margin left and right (20px in each side (the padding on the editing section container). However later after a Chrome update, I noticed it didn't work anymore, so I came up with another solution, where it the class has position:absolute, and left: 0; right: 0; Not sure when it was changed.. it 168 the changes are include, but in 174 and 175 it's an older version of this code. Might be easist just the compare with the code in this PR, but below there is an example. 174 and 175:
168 (the updated code):
|
Thanks for finding this, i streamlined where the progress bar styling was stored in the .less files and how it was used in dialogs so just need to look into how it's being used elsewhere. Will see how i go tomorrow. |
Great.. if you have time tomorrow, then maybe too a look at this PR too #459 so we can close them. Let me know, if you need more details :) |
Great, that's all fixed now in rev: 732d370 the problem was because there was a few of these styles in the wrong places and declared inconsistently. That is all fixed now. |
Also updated here to ensure that the bar is relative in dialogs/modals: |
Hi @Shandem In nightly build 183 is seems to be an issue with package loading and installing progressbar like in earlier comment: #477 (comment) Perhaps some merge conflicts? |
Cheers, thats fixed now: 905cf83 Too many variations of modal/dialog classes because of legacy webforms stuff. |
Modified the styling for the progressbar as the last fix didn't seem to
work in latest updates of Chrome, where the progressbar in Umbraco 7.1.6 and Chrome Version 37.0.2062.103 m hadn't a full width.
Previously pull requests: #420 and #456