fix for picker on ios & popup title line height

This commit is contained in:
wukko 2023-08-21 23:40:37 +06:00
parent fded708d05
commit 2c4efc5a25
3 changed files with 7 additions and 5 deletions

View file

@ -1,7 +1,7 @@
{
"name": "cobalt",
"description": "save what you love",
"version": "7.1",
"version": "7.1.1",
"author": "wukko",
"exports": "./src/cobalt.js",
"type": "module",

View file

@ -422,10 +422,10 @@ button:active,
border: none;
}
.popup.small #popup-title {
margin-bottom: 0.2rem;
margin-bottom: 0.6rem;
}
.popup.small .explanation {
margin-bottom: 0.8rem;
margin-bottom: 0.9rem;
}
#close-error {
background: var(--accent);
@ -496,9 +496,11 @@ button:active,
}
#popup-title {
font-size: 1.5rem;
line-height: 1.85em;
line-height: 1.2em;
display: flex;
align-items: center;
margin-bottom: 0.4rem;
margin-top: 0.4rem;
}
#popup-above-title {
color: var(--accent-subtext);

View file

@ -210,7 +210,7 @@ function popup(type, action, text) {
for (let i in text.arr) {
eid("picker-holder").innerHTML +=
`<a class="picker-image-container" ${
isIOS ? `onClick="share('${text.arr[i]["url"]}')` : `href="${text.arr[i]["url"]}" target="_blank"`
isIOS ? `onClick="share('${text.arr[i]["url"]}')"` : `href="${text.arr[i]["url"]}" target="_blank"`
}>` +
`<img class="picker-image" src="${text.arr[i]["url"]}" onerror="this.parentNode.style.display='none'"></img>` +
`</a>`