Skip to content

Commit

Permalink
0.9.0 Behavior fixes and more
Browse files Browse the repository at this point in the history
  • Loading branch information
annndruha committed Mar 28, 2022
1 parent 79b91f4 commit 764f63f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ body {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
font: 1.0em Arial, sans-serif;
padding: 0;
margin: 0;
}

.app-container {
padding: 0;
padding: 0 0 20px;
transition: margin 500ms, padding 500ms;
height: 100vh;
}

::-webkit-scrollbar {
Expand Down
4 changes: 2 additions & 2 deletions css/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
border: 1px solid #fff;
box-sizing: border-box;
filter: drop-shadow(0px 0px 1px #000);
animation: 0.5s ease 0s normal forwards 1 fadein;
animation: 0.1s ease 0s normal forwards 1 fadein;
}

.grid-item:hover .grid-item-inside-add-img{
animation: 0.5s ease 0s normal forwards 1 fadein;
animation: 0.1s ease 0s normal forwards 1 fadein;
opacity: 1;
}

Expand Down
5 changes: 5 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ document.addEventListener("DOMContentLoaded", () => {
initClock()
})

document.addEventListener('scroll', function (event) {
hideAllRightClick()
}, true)

window.addEventListener('resize', () => {
beautyfyView()
})
Expand All @@ -45,6 +49,7 @@ $(document).on('keyup',function(e) {
if(e.key === "Escape") {
closeSettings()
deleteEditPopup()
hideAllRightClick()
deleteRootElementTree()
}
if ($('#edit_popup').attr('data-status') === 'closed'){
Expand Down
1 change: 1 addition & 0 deletions js/links-func.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function getOpenLink(link) {
}

function openLink(open_link, newtab='auto') {
hideAllRightClick()
open_link = getOpenLink(open_link)
if (varDefined(open_link)) {
if (newtab === 'auto')
Expand Down
6 changes: 3 additions & 3 deletions js/right-click-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function LinkRightClick(what_to_attach) {
e.stopPropagation()
hideAllRightClick()
let link = $(this).attr('link').toString()
$('#click-menu-bottom-menu').css({top: e.pageY + 'px', left: e.pageX + 'px'}).show(100)
$('#click-menu-bottom-menu').css({top: e.clientY + 'px', left: e.clientX + 'px'}).show(100)
$('.click-menu-row').off('click').on('click', {param1: 'link'}, function (e) {
e.stopPropagation()
hideAllRightClick()
Expand All @@ -39,10 +39,10 @@ function gridItemRightClick() {
let link = $(this).find('.grid-item-inside').attr('link').toString()

if($(this).find('.empty-icon').length !== 0){
$('#click-menu-grid-item-edit').css({top: e.pageY + 'px', left: e.pageX + 'px'}).show(100)
$('#click-menu-grid-item-edit').css({top: e.clientY + 'px', left: e.clientX + 'px'}).show(100)
}
else {
$('#click-menu-grid-item').css({top: e.pageY + 'px', left: e.pageX + 'px'}).show(100)
$('#click-menu-grid-item').css({top: e.clientY + 'px', left: e.clientX + 'px'}).show(100)
}

$('.click-menu-row').off('click').on('click', {param1: 'link', param2:'id'}, function (e) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Pulchra bookmarks",
"description": "Pulchra bookmarks extension",
"version": "0.8.5",
"version": "0.9.0",
"manifest_version": 3,
"minimum_chrome_version": "96",
"chrome_url_overrides": {
Expand Down

0 comments on commit 764f63f

Please sign in to comment.