mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-24 08:41:56 +08:00
Increase dataTables_scrollbody width when it has y-overflow [SCI-8610] (#6598)
This commit is contained in:
parent
0c8ecb89b7
commit
64669dee4d
3 changed files with 8 additions and 1 deletions
|
@ -57,6 +57,10 @@ var RepositoryDatatable = (function(global) {
|
|||
}
|
||||
|
||||
function restoreColumnSizes() {
|
||||
const scrollBody = $('.dataTables_scrollBody');
|
||||
if (scrollBody[0].offsetWidth > scrollBody[0].clientWidth) {
|
||||
scrollBody.css('width', `calc(100% + ${scrollBody[0].offsetWidth - scrollBody[0].clientWidth}px)`);
|
||||
}
|
||||
TABLE.colResize.restore();
|
||||
}
|
||||
|
||||
|
|
|
@ -262,6 +262,10 @@ var RepositoryColumns = (function() {
|
|||
if (!_.isEmpty(searchText)) {
|
||||
TABLE.search(searchText).draw();
|
||||
}
|
||||
const scrollBody = $('.dataTables_scrollBody');
|
||||
if (scrollBody[0].offsetWidth > scrollBody[0].clientWidth) {
|
||||
scrollBody.css('width', `calc(100% + ${scrollBody[0].offsetWidth - scrollBody[0].clientWidth}px)`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -226,7 +226,6 @@
|
|||
|
||||
.file-preview-link {
|
||||
display: inline-block;
|
||||
min-width: 140px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue