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

Show ellipsis when WebUI sidebar is too narrow #9919

Merged
merged 2 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/webui/www/private/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ div.formRow {
padding-left: 5px;
padding-top: 5px;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.filterTitle img {
Expand All @@ -430,6 +433,9 @@ ul.filterList {

ul.filterList a {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

ul.filterList li:hover {
Expand Down
6 changes: 2 additions & 4 deletions src/webui/www/private/scripts/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,11 @@ window.addEvent('load', function() {
placement: 'left',
onResize: saveColumnSizes,
width: filt_w,
resizeLimit: [100, 300]
resizeLimit: [1, 300]
Copy link
Member Author

Choose a reason for hiding this comment

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

We have to use a minimum of 1. Mocha treats 0 as it not being set and falls back to 50.

});
new MochaUI.Column({
id: 'mainColumn',
placement: 'main',
width: null,
resizeLimit: [100, 300]
placement: 'main'
});

setCategoryFilter = function(hash) {
Expand Down