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
tab layout - Use icons to decrease label width #316
Comments
To expand this a bit, was thinking of:
does this make sense? |
Media is just one of the factors. Menu overflow can happen because language translations, font-size etc.. |
no offense taken here :) |
another couple more quick questions: |
For devices with limited width, menu in tab layout can overflow. The design should allow icons to limit the menu width. One approach is to let jquery monitor viewport and automatically make the switch by using code which move label text to tile and place applicable icon as label -
`
// Replace menu text by fa
var xl_icons = {
"Calendar": "calendar",
"Flow Board": "calendar-check-o",
"Messages": "envelope",
// "Fees": "money",
// "Administration": "cog",
// "Reports": "file-text-o",
"About": "ellipsis-v",
};
$(".menuLabel").each( function(ix) {
var lbl = $(this).html().trim();
if (xl_icons[lbl]) {
$(this).css ('font-size', '150%');
$(this).attr ('title', lbl);
$(this).html('');
}
});
`
The text was updated successfully, but these errors were encountered: