From d65bbcf168a56ad70ff022cba7f535ac1cdca50f Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 27 Jan 2023 13:38:45 +0530 Subject: [PATCH] Fix scaling on chrome --- src/platform/web/ui/css/themes/element/theme.css | 10 ++++++++-- src/platform/web/ui/css/themes/element/timeline.css | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/platform/web/ui/css/themes/element/theme.css b/src/platform/web/ui/css/themes/element/theme.css index 3aec2a8a..7bea169e 100644 --- a/src/platform/web/ui/css/themes/element/theme.css +++ b/src/platform/web/ui/css/themes/element/theme.css @@ -1278,7 +1278,10 @@ button.RoomDetailsView_row::after { } .CallToastNotificationView__call-type::before { - content: url("./icons/video-call.svg?primary=light-text-color"); + content: ""; + background-image: url("./icons/video-call.svg?primary=light-text-color"); + background-repeat: no-repeat; + background-size: 20px 20px; display: flex; width: 20px; height: 20px; @@ -1296,7 +1299,10 @@ button.RoomDetailsView_row::after { } .CallToastNotificationView__member-count::before { - content: url("./icons/room-members.svg?primary=light-text-color"); + content: ""; + background-image: url("./icons/room-members.svg?primary=light-text-color"); + background-repeat: no-repeat; + background-size: 20px 20px; display: flex; width: 20px; height: 20px; diff --git a/src/platform/web/ui/css/themes/element/timeline.css b/src/platform/web/ui/css/themes/element/timeline.css index 16c758a3..8606400d 100644 --- a/src/platform/web/ui/css/themes/element/timeline.css +++ b/src/platform/web/ui/css/themes/element/timeline.css @@ -465,7 +465,10 @@ only loads when the top comes into view*/ } .CallTileView_memberCount::before { - content: url('./icons/room-members.svg?primary=text-color'); + content: ""; + background-image: url('./icons/room-members.svg?primary=text-color'); + background-repeat: no-repeat; + background-size: 16px 16px; width: 16px; height: 16px; display: inline-flex;