Fix bookmarklet layout to work on more pages.

`display: block` is needed on some pages that have local CSS overrides that happen to apply to our elements as well.
`z-index: 2147483647` seems to be the maximum allowed values, as per http://web.archive.org/web/20160502062529/http://www.puidokas.com/max-z-index

Fixes #273 on GitHub upstream.
This commit is contained in:
Lapo Luchini
2021-05-30 11:56:22 +02:00
committed by Ji Qu
parent b84cf6840c
commit 24d54d5dbb

View File

@@ -38,7 +38,8 @@
pinryImages.id = 'pinry-images';
setCSS(pinryImages, {
position: 'fixed',
zIndex: 9001,
display: 'block',
zIndex: 2147483647,
background: 'rgba(0, 0, 0, 0.7)',
paddingTop: '70px',
top: 0,
@@ -52,6 +53,7 @@
var pinryBar = document.createElement('div');
pinryBar.id = 'pinry-bar';
setCSS(pinryBar, {
display: 'block',
background: 'black',
padding: '15px',
position: 'absolute',