diff --git a/src/components/common/ProfileInfo.scss b/src/components/common/ProfileInfo.scss index 9ea2d8cb1..1c1a743ab 100644 --- a/src/components/common/ProfileInfo.scss +++ b/src/components/common/ProfileInfo.scss @@ -1,6 +1,12 @@ .ProfileInfo { aspect-ratio: 1 / 1; position: relative; + overflow: hidden; + + body.is-safari #Main & { + transform: translateZ(-1px) scale(2); + transform-origin: 0 0; + } @supports not (aspect-ratio: 1 / 1) { &::before { @@ -23,6 +29,11 @@ top: 0; bottom: 0; + body:not(.is-firefox):not(.is-safari) & { + transform: translateZ(-1px) scale(2); + transform-origin: 0 0; + } + > .Transition { width: 100%; height: 100%; diff --git a/src/components/left/settings/Settings.scss b/src/components/left/settings/Settings.scss index e00f2fc78..778052900 100644 --- a/src/components/left/settings/Settings.scss +++ b/src/components/left/settings/Settings.scss @@ -99,6 +99,7 @@ margin: 0 -.5rem .625rem; box-shadow: inset 0 -.0625rem 0 0 var(--color-background-secondary-accent); border-bottom: .625rem solid var(--color-background-secondary); + background-color: var(--color-background); .ListItem.narrow { margin-bottom: .25rem; diff --git a/src/components/left/settings/SettingsMain.tsx b/src/components/left/settings/SettingsMain.tsx index 4f1d1a6e1..69a5b504c 100644 --- a/src/components/left/settings/SettingsMain.tsx +++ b/src/components/left/settings/SettingsMain.tsx @@ -47,7 +47,7 @@ const SettingsMain: FC = ({ useHistoryBack(isActive, onReset, onScreenSelect, SettingsScreens.Main); return ( -
+
{currentUser && ( = ({ return ( { } else if (IS_MAC_OS) { document.body.classList.add('is-macos'); } + if (IS_FIREFOX) { + document.body.classList.add('is-firefox'); + } else if (IS_SAFARI) { + document.body.classList.add('is-safari'); + } }); addReducer('setIsUiReady', (global, actions, payload) => { diff --git a/src/styles/index.scss b/src/styles/index.scss index 06cfa77ab..024a46ba7 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -147,6 +147,12 @@ body:not(.is-ios) { } } +body:not(.is-firefox) .parallax-scroll { + perspective: 1px; + perspective-origin: left top; + transform: translateZ(0px); +} + .emoji-small { background: no-repeat; background-size: 1.25rem; diff --git a/src/util/environment.ts b/src/util/environment.ts index 48f0c8eae..e4b6f5ae0 100644 --- a/src/util/environment.ts +++ b/src/util/environment.ts @@ -39,6 +39,7 @@ export const IS_MAC_OS = PLATFORM_ENV === 'macOS'; export const IS_IOS = PLATFORM_ENV === 'iOS'; export const IS_ANDROID = PLATFORM_ENV === 'Android'; export const IS_SAFARI = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); +export const IS_FIREFOX = /firefox|iceweasel/i.test(navigator.userAgent); export const IS_PWA = window.matchMedia('(display-mode: standalone)').matches || (window.navigator as any).standalone || document.referrer.includes('android-app://');