mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-10 14:16:28 +08:00
Small snapshot css corrections
This commit is contained in:
parent
8e20dccc66
commit
f94ea51ecb
2 changed files with 34 additions and 18 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable no-param-reassign, no-use-before-define */
|
||||
/* global DataTableHelpers PerfectScrollbar FilePreviewModal animateSpinner HelperModule initAssignedTasksDropdown */
|
||||
/* global DataTableHelpers PerfectScrollbar FilePreviewModal animateSpinner HelperModule
|
||||
initAssignedTasksDropdown */
|
||||
|
||||
var MyModuleRepositories = (function() {
|
||||
const FULL_VIEW_MODAL = $('#myModuleRepositoryFullViewModal');
|
||||
|
|
@ -159,6 +160,9 @@ var MyModuleRepositories = (function() {
|
|||
renderFullViewAssignButtons();
|
||||
} else {
|
||||
$('.table-container .toolbar').html($('#repositoryToolbarButtonsTemplate').html());
|
||||
if (FULL_VIEW_MODAL.find('.modal-content').hasClass('show-sidebar')) {
|
||||
FULL_VIEW_MODAL.find('#showVersionsSidebar').addClass('active');
|
||||
}
|
||||
}
|
||||
initAssignedTasksDropdown(tableContainer);
|
||||
},
|
||||
|
|
@ -278,6 +282,8 @@ var MyModuleRepositories = (function() {
|
|||
|
||||
function initVersionsSidebarActions() {
|
||||
FULL_VIEW_MODAL.on('click', '#showVersionsSidebar', function(e) {
|
||||
$(this).toggleClass('active');
|
||||
if ($(this).hasClass('active')) {
|
||||
$.getJSON(FULL_VIEW_MODAL.find('.table').data('versions-sidebar-url'), (data) => {
|
||||
var snapshotsItemsScrollBar;
|
||||
FULL_VIEW_MODAL.find('.repository-versions-sidebar').html(data.html);
|
||||
|
|
@ -290,6 +296,9 @@ var MyModuleRepositories = (function() {
|
|||
snapshotsItemsScrollBar.update();
|
||||
FULL_VIEW_TABLE.columns.adjust();
|
||||
});
|
||||
} else {
|
||||
FULL_VIEW_MODAL.find('#collapseVersionsSidebar').click();
|
||||
}
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
|
|
@ -341,6 +350,7 @@ var MyModuleRepositories = (function() {
|
|||
|
||||
FULL_VIEW_MODAL.on('click', '#collapseVersionsSidebar', function(e) {
|
||||
FULL_VIEW_MODAL.find('.modal-content').removeClass('show-sidebar');
|
||||
FULL_VIEW_MODAL.find('#showVersionsSidebar').removeClass('active');
|
||||
FULL_VIEW_TABLE.columns.adjust();
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -25,7 +25,9 @@
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:active {
|
||||
&:active,
|
||||
&.active {
|
||||
box-shadow: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
|
@ -44,7 +46,8 @@
|
|||
color: $color-white;
|
||||
}
|
||||
|
||||
&:active {
|
||||
&:active,
|
||||
&.active {
|
||||
background: $brand-primary-press;
|
||||
color: $color-white;
|
||||
}
|
||||
|
|
@ -66,7 +69,8 @@
|
|||
color: $color-volcano;
|
||||
}
|
||||
|
||||
&:active {
|
||||
&:active,
|
||||
&.active {
|
||||
background: $color-alto;
|
||||
border: $border-secondary;
|
||||
color: $color-volcano;
|
||||
|
|
@ -89,7 +93,8 @@
|
|||
color: $color-volcano;
|
||||
}
|
||||
|
||||
&:active {
|
||||
&:active,
|
||||
&.active {
|
||||
background: $color-alto;
|
||||
border: $border-transparent;
|
||||
color: $color-volcano;
|
||||
|
|
@ -111,7 +116,8 @@
|
|||
color: $color-white;
|
||||
}
|
||||
|
||||
&:active {
|
||||
&:active,
|
||||
&.active {
|
||||
background: $brand-danger-press;
|
||||
color: $color-white;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue