From 5ae6e2e0e1ce9e7d46c14987ebbe90544a60f1a7 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Mon, 9 Sep 2024 17:36:32 +0100 Subject: [PATCH] tweaks --- res/css/views/right_panel/_UserInfo.pcss | 4 +--- src/components/structures/LoggedInView.tsx | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/res/css/views/right_panel/_UserInfo.pcss b/res/css/views/right_panel/_UserInfo.pcss index b0824f704f6..3a5dfe3b053 100644 --- a/res/css/views/right_panel/_UserInfo.pcss +++ b/res/css/views/right_panel/_UserInfo.pcss @@ -133,9 +133,7 @@ limitations under the License. } .mx_UserInfo_timezone { - .mx_UserInfo_profileStatus { - margin: var(--cpd-space-1x) 0; - } + margin: var(--cpd-space-1x) 0; } .mx_PresenceLabel { diff --git a/src/components/structures/LoggedInView.tsx b/src/components/structures/LoggedInView.tsx index 3ead748da50..cba172a0715 100644 --- a/src/components/structures/LoggedInView.tsx +++ b/src/components/structures/LoggedInView.tsx @@ -217,6 +217,7 @@ class LoggedInView extends React.Component { const currentTimezone = SettingsStore.getValue("userTimezone") || // If the timezone is empty, then use the browser timezone. + // eslint-disable-next-line new-cap Intl.DateTimeFormat().resolvedOptions().timeZone; if (!currentTimezone || typeof currentTimezone !== "string") { return;