chore: update share button + fixes

This commit is contained in:
Cory Dransfeldt 2024-02-20 14:24:32 -08:00
parent f45eb74c0f
commit 593c2a5a09
No known key found for this signature in database
9 changed files with 37 additions and 51 deletions

View file

@ -28,6 +28,11 @@ class NowPlaying extends HTMLElement {
const { key } = slot.dataset
const value = data[key]
if (!value || value === typeof undefined) {
slot.style.opacity = '0'
slot.style.display = 'none'
}
if (cache) {
if (key === 'loading') {
slot.style.opacity = '0'

View file

@ -1,3 +1,8 @@
webcare-webshare {
font-size: var(--font-size-sm);
line-height: var(--line-height-sm);
}
button {
background: transparent;
padding: 0;
@ -12,10 +17,4 @@ input {
border-radius: var(--rounded-md);
padding: .25rem;
border: 1px solid var(--gray-light);
}
label {
font-size: var(--font-size-sm);
line-height: var(--line-height-sm);
height: 1rem;
}