From a7dcfb73631bf36e8bc56de68b53a6e4abb74bdf Mon Sep 17 00:00:00 2001 From: Thiago Hernandez Date: Thu, 6 Jul 2023 22:27:17 +0200 Subject: [PATCH 1/2] fix: fixed the sidebar menu applying the right size in different screen sizes --- src/renderer/theme/GlobalStyles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/theme/GlobalStyles.js b/src/renderer/theme/GlobalStyles.js index 9b5f8622b..913a0323d 100644 --- a/src/renderer/theme/GlobalStyles.js +++ b/src/renderer/theme/GlobalStyles.js @@ -1750,7 +1750,7 @@ div.card.card-preferences .card-body { } } @media screen and (min-width: 1000px) { - #app { + #root { --sidebarWidth: ${({ theme }) => theme.sidebarWidthLarge}px; } .bs-tooltip-right.tooltipMenu { @@ -1770,7 +1770,7 @@ div.card.card-preferences .card-body { } @media screen and (max-height: 870px) { - #app { + #root { --sidebarWidth: ${({ theme }) => theme.sidebarWidthMedium}px; } div.main-container { @@ -1783,7 +1783,7 @@ div.card.card-preferences .card-body { } @media screen and (max-height: 670px) { - #app { + #root { --sidebarWidth: ${({ theme }) => theme.sidebarWidthSmall}px; } } From 5ddbae1d547e967ef9bea8ba4d6c182a0e6f475a Mon Sep 17 00:00:00 2001 From: Thiago Hernandez Date: Thu, 6 Jul 2023 22:59:20 +0200 Subject: [PATCH 2/2] fix: fixed the battery status when the battery is already fully charged --- .../component/Battery/BatteryStatusSide.js | 2 +- .../component/Battery/DefyBatteryIndicator.js | 17 +++++------------ .../Battery/DefyBatteryIndicatorLeft.js | 6 +++--- .../Battery/DefyBatteryIndicatorRight.js | 6 +++--- src/renderer/component/Battery/PileIndicator.js | 11 +++-------- 5 files changed, 15 insertions(+), 27 deletions(-) diff --git a/src/renderer/component/Battery/BatteryStatusSide.js b/src/renderer/component/Battery/BatteryStatusSide.js index 3252cf021..dcb5aae6f 100644 --- a/src/renderer/component/Battery/BatteryStatusSide.js +++ b/src/renderer/component/Battery/BatteryStatusSide.js @@ -246,7 +246,7 @@ const BatteryStatusSide = ({ side, batteryLevel, isSavingMode, batteryStatus, si if (batteryLevel < 10 && !isSavingMode && batteryStatus === 0) { setSideStatus("status--critical"); } - if (batteryStatus === 1 || batteryStatus === 2) { + if (batteryStatus === 1) { setIsCharging(true); } }, [size, batteryLevel, batteryStatus, isSavingMode]); diff --git a/src/renderer/component/Battery/DefyBatteryIndicator.js b/src/renderer/component/Battery/DefyBatteryIndicator.js index 5693442a9..9194113fb 100644 --- a/src/renderer/component/Battery/DefyBatteryIndicator.js +++ b/src/renderer/component/Battery/DefyBatteryIndicator.js @@ -78,17 +78,10 @@ const DefyBatteryIndicator = ({ side, batteryLevel, isCharging, batteryStatus })