From ed9bf4a665b70b5b5154d9060792ebb19a687986 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Fri, 5 Apr 2024 00:01:53 +0300 Subject: [PATCH 1/2] Fix margin of Favorite button `listItemButton` removes margin and should not be used for non-list items. --- src/components/nowPlayingBar/nowPlayingBar.js | 2 +- src/components/remotecontrol/remotecontrol.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/nowPlayingBar/nowPlayingBar.js b/src/components/nowPlayingBar/nowPlayingBar.js index cdeaea0cca..6e7e0bcea1 100644 --- a/src/components/nowPlayingBar/nowPlayingBar.js +++ b/src/components/nowPlayingBar/nowPlayingBar.js @@ -585,7 +585,7 @@ function updateNowPlayingInfo(state) { }); }); } - nowPlayingUserData.innerHTML = ''; + nowPlayingUserData.innerHTML = ''; }); } else { nowPlayingUserData.innerHTML = ''; diff --git a/src/components/remotecontrol/remotecontrol.js b/src/components/remotecontrol/remotecontrol.js index 9406e16e2b..b08929c8cb 100644 --- a/src/components/remotecontrol/remotecontrol.js +++ b/src/components/remotecontrol/remotecontrol.js @@ -233,8 +233,8 @@ function updateNowPlayingInfo(context, state, serverId) { apiClient.getItem(apiClient.getCurrentUserId(), item.Id).then(function (fullItem) { const userData = fullItem.UserData || {}; const likes = userData.Likes == null ? '' : userData.Likes; - context.querySelector('.nowPlayingPageUserDataButtonsTitle').innerHTML = ''; - context.querySelector('.nowPlayingPageUserDataButtons').innerHTML = ''; + context.querySelector('.nowPlayingPageUserDataButtonsTitle').innerHTML = ''; + context.querySelector('.nowPlayingPageUserDataButtons').innerHTML = ''; }); } else { clearBackdrop(); From b0f295d6e68de390cd8c7740c35175a14589cea7 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Fri, 5 Apr 2024 00:03:18 +0300 Subject: [PATCH 2/2] Remove margin from Favorite button in title Previosly, the `listItemButton` class removed it. --- src/components/remotecontrol/remotecontrol.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/remotecontrol/remotecontrol.scss b/src/components/remotecontrol/remotecontrol.scss index f6e9a82e50..73523fa311 100644 --- a/src/components/remotecontrol/remotecontrol.scss +++ b/src/components/remotecontrol/remotecontrol.scss @@ -351,16 +351,16 @@ .nowPlayingInfoControls .nowPlayingPageUserDataButtonsTitle button { padding-top: 0; border-radius: 0; + margin-left: 0; + margin-right: 0; [dir="ltr"] & { padding-right: 0; - margin-right: 0; float: right; } [dir="rtl"] & { padding-left: 0; - margin-left: 0; float: left; } }