Skip to content
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

U4-4507 - Make expand arrow in sections as a toggle #633

Merged
merged 3 commits into from
May 7, 2015

Conversation

bjarnef
Copy link
Contributor

@bjarnef bjarnef commented Feb 4, 2015

I have made some suggestions, so the right arrow act as a toggle button,
so you easily can collapse the extra overflow-sections. Furthermore I
have made some changes, so when you click userDialog or helpDialog other
open dialogs close and also sections. When you click a section or expand
it also close dialogs, so you don't have to close those dialogs first.
http://issues.umbraco.org/issue/U4-4507

In the top of the sections, just below the avatar, I made sure that the horizontal line follow the line across to the tree area and editing area, and I added some additional borders to seperate the different sections.

I like the effect that the arrow just rotate, but I have added some comments in the code if you rather want to switch to a left arrow icon without the rotate effekt.
On smaller screen resolutions the tree menu is hidden, so when your cursor leave the sections the the tray is closed - can the tray be closed when you click outside the sections e.g. in the tree area or editing area? The user dialog and help dialog are closed when you click these areas.

Finally I also made a change to use small versions of thumbnails in help panel: http://issues.umbraco.org/issue/U4-4028

Instead of displaying large image like this: http://umbraco.tv/media/88895/settings-and-styles.jpg, why not use the _thumb http://umbraco.tv/media/88895/settings-and-styles_thumb.jpg. This thumb has a width of 100px and the thumbnails are anyway scaled to a width of 90px. However it seems that not all these video thumbnails have a _thumb image generated? And if the large images not are used inside Umbraco, it would be better to only request the _thumb image e.g. 100x56px instead of requesting images with a image size of 1280x720px.

I have made some suggestions, so the right arrow act as a toggle button,
so you easily can collapse the extra overflow-sections. Furthermore I
have made some changes, so when you click userDialog or helpDialog other
open dialogs close and also sections. When you click a section or expand
it also close dialogs, so you don't have to close those dialogs first.
@@ -22,6 +22,9 @@ function sectionsDirective($timeout, $window, navigationService, treeService, se
if (scope.showTray) {
return 'slide';
}
else if (scope.showTray === false) {
return 'slide';
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This make the ekstra trays slide when they are collapsed.

IE10 displayed a text cursor for tray and help section. Added cursor:
pointer; to make sure a pointer cursor is displayed.
Change code for in help.controller.js as it was.
Shazwazza added a commit that referenced this pull request May 7, 2015
U4-4507 - Make expand arrow in sections as a toggle
@Shazwazza Shazwazza merged commit a3e37de into umbraco:dev-v7 May 7, 2015
@Shazwazza
Copy link
Contributor

Great stuff!! tested and works great

@bjarnef bjarnef deleted the dev-v7-U4-4507 branch September 12, 2020 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants