Conversation
|
Great concept, in my opinion this needs better UI. Icon should be different and overall "sidebar" be more obviously a "panel" . |
|
All suggestions on how to improve are welcome. As I am a coder and not a designer, help in this department would be greatly appreciated. |
|
Great start. Probably the wrong icon - I think that one is usually for
|
|
@losedk Which icon is that in your screenshot? |
|
@roland-d it's icon-list-2 |
|
@losedk Updated the PR to reflect the proposed button change before the searchbox. Looks and works pretty good I think. |
|
@roland-d looks cool! Just a few comments: |
|
@losedk Thanks for testing.
What makes you think that? The code: localStorage.setItem('com_content_sidebar_visible', jQuery('#sidebar').is(":visible"));stores the value or not?
I don't see the issue, can you explain what to look for? Here are my open and closed shots. The tooltip has been added. Changes to the wording are welcome. |
There was a problem hiding this comment.
Well it cant hide it if it is hidden or show it if is shown so this really needs simplifying.
There was a problem hiding this comment.
Or two different based on the state:
- Hide sidebar menu
- Show sidebar menu
|
@roland-d when refreshing the page the previous setting isn't applied. In my test when uncollapsing the sidebar and refreshing the sidebar remains collapsed. |
|
@losedk The state should be remembered now. Can you please check? As for the alignments, the body never aligns with the toolbar buttons. Not before or after my change. This is the page using the current staging branch. The language string depending on status, can be done but requires more JavaScript. We don't have any similar string anywhere in Joomla? |
|
Shouldn't we be using a cookie instead of localstorage to ensure browsers that don't have localstorage don't break ? Shouldn't there be a check as well to find out if localstorage is available ? As for the icon I feel icon-arrow-right-4 & icon-arrow-left-4 would be more apt. |
|
@coolbung Cookies are possible too, just at first localStorage was suggested. How long should the cookie life be? I will have a look at those icons as well. |
|
I'd suggest to use localstorage if available (that way the setting can be indefinitely remembered, unless cleared), otherwise use a cookie that has a 2 year validity. |
|
Browsersupport for localstorage seems to be good enough to use it: |
|
Browsersupport of Joomla: http://docs.joomla.org/Joomla_Browser_Support |
…them state aware.
|
Tested everything I can think of and it works really well and I hope this will be accepted and applied to ALL views The only small issue I have found is that using arrows doesnt work in RTL - they point in the wrong direction |
|
@brianteeman Thanks for testing. Good point on the arrows, I will take a look at that. |
|
Maybe something that indicates expand and contract |
|
@JoomliC & @phproberto The new icons are in place. Only thing I did not change was the placement of the X icon. |
|
@phproberto : i prefer to give idea and/or help. It is Roland idea and work (a good one!) ;-) #j-sidebar-container {
margin-right: 10px;
}
div#j-sidebar-container.j-toggle-hidden {
width: 0;
margin-right: 0;
}
div#j-sidebar-container.j-toggle-hidden #j-toggle-sidebar-button {
position: absolute;
color: #111;
padding: 6px 4px 0 6px;
border-radius: 0 4px 4px 0;
}
div#j-sidebar-container.j-toggle-visible #j-toggle-sidebar-button {
position: relative;
color: #999;
padding: 2px 5px;
border-radius: 4px 4px 0 0;
text-align: right;
border-bottom: 1px solid #d3d3d3;
}
div#j-sidebar-container.j-toggle-hidden #j-toggle-sidebar-button:hover {
color: #555;
background: #e6e6e6;
}
div#j-sidebar-container.j-toggle-visible #j-toggle-sidebar-button:hover {
color: #555;
background: #e6e6e6;
}
#j-toggle-sidebar-button {
left: 0;
border-left: 0;
background: #e1e1e1;
margin-top: 0;
cursor: pointer;
height: 23px;
}
#sidebar {
padding: 3px;
background: #ffffff;
background: -moz-linear-gradient(top,#ffffff 0%,#ededed 100%);
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ffffff),color-stop(100%,#ededed));
background: -webkit-linear-gradient(top,#ffffff 0%,#ededed 100%);
background: -o-linear-gradient(top,#ffffff 0%,#ededed 100%);
background: -ms-linear-gradient(top,#ffffff 0%,#ededed 100%);
background: linear-gradient(top,#ffffff 0%,#ededed 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#ededed',GradientType=0);
border-right: 1px solid #e1e1e1;
border-left: 1px solid #e1e1e1;
border-bottom: 1px solid #e1e1e1;
border-radius: 0 0 4px 4px;
}
.j-toggle-visible #j-toggle-sidebar-icon {
margin-top: 6px;
margin-left: 4px;
}
|
|
@roland-d : i've just updated my previous message by changing sidebar background to a gradient one (the same as subhead class (toolbar)) + a border-bottom for close icon header |
|
@JoomliC The changes look pretty neat. We need a fix for RTL. Check these images: The regular button looks good: With RTL the button needs to be mirrored: Please have a look at that :) |
|
@roland-d : just needs to change border-radius for RTL #j-sidebar-container {
margin-left: 10px;
margin-right: 0;
}
div#j-sidebar-container.j-toggle-hidden {
width: 0;
margin-right: 0;
}
div#j-sidebar-container.j-toggle-hidden #j-toggle-sidebar-button {
position: absolute;
color: #111;
padding: 6px 2px 0 4px;
border-radius: 4px 0 0 4px;
}
div#j-sidebar-container.j-toggle-visible #j-toggle-sidebar-button {
position: relative;
color: #999;
padding: 2px 5px;
border-radius: 4px 4px 0 0;
text-align: left;
border-bottom: 1px solid #d3d3d3;
}
div#j-sidebar-container.j-toggle-hidden #j-toggle-sidebar-button:hover {
color: #555;
background: #e6e6e6;
}
div#j-sidebar-container.j-toggle-visible #j-toggle-sidebar-button:hover {
color: #555;
background: #e6e6e6;
}
#j-toggle-sidebar-button {
right: 0;
left: auto;
border-right: 0;
background: #e1e1e1;
margin-top: 0;
cursor: pointer;
height: 23px;
}
#sidebar {
padding: 3px;
background: #ffffff;
background: -moz-linear-gradient(top,#ffffff 0%,#ededed 100%);
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ffffff),color-stop(100%,#ededed));
background: -webkit-linear-gradient(top,#ffffff 0%,#ededed 100%);
background: -o-linear-gradient(top,#ffffff 0%,#ededed 100%);
background: -ms-linear-gradient(top,#ffffff 0%,#ededed 100%);
background: linear-gradient(top,#ffffff 0%,#ededed 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#ededed',GradientType=0);
border-right: 1px solid #e1e1e1;
border-left: 1px solid #e1e1e1;
border-bottom: 1px solid #e1e1e1;
border-radius: 0 0 4px 4px;
}
.j-toggle-visible #j-toggle-sidebar-icon {
margin-top: 6px;
margin-right: 4px;
}
#j-main-container.expanded {
margin-right: 0;
}
I don't know why css classes are splitted in your template-rtl.css ? Is there a specific reason ? |
|
@JoomliC Thanks that works. Tested it on both Windows and Mac.
It is because of the CSS generator. It takes the template.less and glues the template-rtl.less after that. This way any specific settings override the default ones. |
|
Nice new icons |
|
There's issues with the sidebar pushing content down on some installs. I got this on my laptop and noticed it on another at the bug squad session at #JD14UK Can't get it consistently across all components but it's definitely an issue |
|
I mean this one - I was doing an unrelated test on the staging branch and discovered this |
|
@wilsonge |
Move button before searchbox Add tooltip Fix remembering state. Simplify language string. Layout fixes. Updated icons, made them state aware. Updated language strings, made them state aware. Updated icons, alpha ordered language file, added grey background to the sidebar. Make the code abstract Added check if localStorage is available. Added code change to compressed core.js. Added toggle button to all views. Generated CSS files based on less generator. Fixed toggle buttons on user views. Update template-rtl.less. Fixed toggle button being activated on enter in filter field. Moved button to the sidebar file. Added transition changes. Cleanup banners Cleanup banners Further cleanup Further cleanup Simplify hiding the sidebar Keep the button visible Add missing empty line Updated the sidepanel. Many thanks to @RemcoJanssen Fixed Plugin view using the wrong div ID Updated CSS for RTL languages Change the icons used for closing and opening. Updated CSS for RTL.
Move button before searchbox Add tooltip Fix remembering state. Simplify language string. Layout fixes. Updated icons, made them state aware. Updated language strings, made them state aware. Updated icons, alpha ordered language file, added grey background to the sidebar. Make the code abstract Added check if localStorage is available. Added code change to compressed core.js. Added toggle button to all views. Generated CSS files based on less generator. Fixed toggle buttons on user views. Update template-rtl.less. Fixed toggle button being activated on enter in filter field. Moved button to the sidebar file. Added transition changes. Cleanup banners Cleanup banners Further cleanup Further cleanup Simplify hiding the sidebar Keep the button visible Add missing empty line Updated the sidepanel. Many thanks to @RemcoJanssen Fixed Plugin view using the wrong div ID Updated CSS for RTL languages Change the icons used for closing and opening. Updated CSS for RTL.
|
@test I love it and it works cool as per perception. Nice job and I would definitely merge this into J3.4 (!) |
|
This has already been merged ages ago. |
|
Well I have not seen that...... I am sorry but thanks for correcting...
|
|
If we can it would be great to have some kind of panels with the words 'Sidebar menu' or something on it instead of the icon.. Just reviewed this while writing the marketing copy for it.. It will be much more intuitive than just an arrow.. |
|
I believe that this is a past station since this was extensively discussed above in October 2014 and we should not reopen that discussion I believe |
|
@gwsdesk Yup sorry i came late to the party.. but should be considered for future releases. |
|
If you want it to be considered then commenting on a CLOSED issue is not the best way for people to see it This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4197. |
|
Sorry @brianteeman will add it a new issue. Was thinking of keeping things in context which is why i commented here. Did not know that it is bad practice.. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4197. |
|
It is not about bad practice it is just that unless you are watching all PR via email no one will see this This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4197. |










This is an attempt to bring collapsible sidebars into Joomla!
What problem is being solved
The problem that is being solved is that of the sidebar using too much screen space while at the same time maintain the usefulness of the sidebar. This is a spin-off from the discussion in PR #4178.
Proof of concept
Currently this PR only deals with the articles list as a proof of concept. Once we have reached a mutual agreement I will implement the needed code in all applicable views.
How to test
Todo
Questions
Before
After