1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

[Organization] Display page number when page is selected

This commit is contained in:
Vincent LAURENT 2022-10-08 10:28:18 +02:00
parent 96172423c6
commit 3f9d8f380f

View File

@ -441,7 +441,8 @@ var updatePageState = function(page) {
page.querySelector('.btn-restore').classList.remove('d-none');
}
if(isPageSelected(page)) {
if(isPageSelected(page) != isPageDragged(page)) {
page.querySelector('.page-title').classList.remove('d-none');
page.classList.add('border-primary', 'shadow-sm', 'bg-primary');
page.classList.remove('border-transparent', 'bg-transparent', 'border-secondary', 'bg-secondary');
page.querySelector('.btn-select').classList.add('text-primary');