Skip to content

Commit

Permalink
fix vertical slider tooltip transform, better deprecated action defin…
Browse files Browse the repository at this point in the history
…ition upgrading for perform-action
  • Loading branch information
Nerwyn committed Aug 8, 2024
1 parent f646f40 commit 1d21c48
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/android-tv-card.min.js

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions src/android-tv-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,14 @@ class AndroidTVCard extends LitElement {
action.action = 'key';
} else if (action.source) {
action.action = 'source';
} else if (
action.perform_action ||
action['service' as 'perform_action']
) {
} else if (action.perform_action) {
action.action = 'perform-action';
} else if (action['service' as 'perform_action']) {
// Deprecated in 2024.8
action.action = 'perform-action';
action.perform_action =
action['service' as 'perform_action'];
delete action['service' as 'perform_action'];
} else if (action.navigation_path) {
action.action = 'navigate';
} else if (action.url_path) {
Expand Down
2 changes: 1 addition & 1 deletion src/classes/remote-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class RemoteSlider extends BaseRemoteElement {
(this.vertical
? `translate(calc(-0.7 * ${
width ?? '48px'
} - 0.4em - 10px), calc(-1 * var(--thumb-offset)))`
} - 0.8em - 18px), calc(-1 * var(--thumb-offset)))`
: `translate(var(--thumb-offset), calc(-0.5 * ${
height ?? '48px'
} - 0.4em - 10px))`),
Expand Down

0 comments on commit 1d21c48

Please sign in to comment.