From 0758b8cdfe40a8b2baf4b4b817e24d6ef5cfe837 Mon Sep 17 00:00:00 2001 From: Kerry Date: Mon, 16 Jan 2023 10:31:07 +1300 Subject: [PATCH] Device manager - tweak settings display (#9905) * compound devices icon * update icon for new session manager tab * condense privacy > analytics / sessions sections slightly --- res/css/views/dialogs/_UserSettingsDialog.pcss | 4 ++++ res/img/element-icons/settings/devices.svg | 5 +++++ src/components/views/dialogs/UserSettingsDialog.tsx | 2 +- .../views/settings/tabs/user/SecurityUserSettingsTab.tsx | 2 -- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 res/img/element-icons/settings/devices.svg diff --git a/res/css/views/dialogs/_UserSettingsDialog.pcss b/res/css/views/dialogs/_UserSettingsDialog.pcss index 118c057b83..41d39f8b79 100644 --- a/res/css/views/dialogs/_UserSettingsDialog.pcss +++ b/res/css/views/dialogs/_UserSettingsDialog.pcss @@ -49,6 +49,10 @@ limitations under the License. mask-image: url("$(res)/img/element-icons/security.svg"); } +.mx_UserSettingsDialog_sessionsIcon::before { + mask-image: url("$(res)/img/element-icons/settings/devices.svg"); +} + .mx_UserSettingsDialog_helpIcon::before { mask-image: url("$(res)/img/element-icons/settings/help.svg"); } diff --git a/res/img/element-icons/settings/devices.svg b/res/img/element-icons/settings/devices.svg new file mode 100644 index 0000000000..4d2f171993 --- /dev/null +++ b/res/img/element-icons/settings/devices.svg @@ -0,0 +1,5 @@ + + + + diff --git a/src/components/views/dialogs/UserSettingsDialog.tsx b/src/components/views/dialogs/UserSettingsDialog.tsx index a7877072b3..7b33ca58da 100644 --- a/src/components/views/dialogs/UserSettingsDialog.tsx +++ b/src/components/views/dialogs/UserSettingsDialog.tsx @@ -164,7 +164,7 @@ export default class UserSettingsDialog extends React.Component new Tab( UserTab.SessionManager, _td("Sessions"), - "mx_UserSettingsDialog_securityIcon", + "mx_UserSettingsDialog_sessionsIcon", , // don't track with posthog while under construction undefined, diff --git a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx index 018ecf76ae..550b395da5 100644 --- a/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/SecurityUserSettingsTab.tsx @@ -353,8 +353,6 @@ export default class SecurityUserSettingsTab extends React.Component )} - -
{_t("Sessions")}