From a34f8fe58604c45b55427f21c60a6022897decb9 Mon Sep 17 00:00:00 2001 From: Peter Sanderson Date: Tue, 7 May 2024 12:17:58 +0200 Subject: [PATCH] fix(suite): anchor auto-scrolling to hightligted element was broken by this in Chromium --- packages/components/src/components/Card/Card.tsx | 2 +- .../src/views/settings/SettingsDebug/TriggerHighlight.tsx | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/components/src/components/Card/Card.tsx b/packages/components/src/components/Card/Card.tsx index e52bb8538bb..93bc32e1459 100644 --- a/packages/components/src/components/Card/Card.tsx +++ b/packages/components/src/components/Card/Card.tsx @@ -61,7 +61,7 @@ const CardContainer = styled.div< padding: ${mapPaddingTypeToPadding}; background: ${mapElevationToBackground}; border-radius: ${borders.radii.md}; - overflow: auto; + ${({ $isClickable, theme }) => $isClickable && ` diff --git a/packages/suite/src/views/settings/SettingsDebug/TriggerHighlight.tsx b/packages/suite/src/views/settings/SettingsDebug/TriggerHighlight.tsx index 11a1b8efce0..ae04d4cac34 100644 --- a/packages/suite/src/views/settings/SettingsDebug/TriggerHighlight.tsx +++ b/packages/suite/src/views/settings/SettingsDebug/TriggerHighlight.tsx @@ -16,12 +16,10 @@ export const TriggerHighlight = () => { - dispatch( - goto('settings-index', { anchor: SettingsAnchor.BitcoinAmountUnit }), - ) + dispatch(goto('settings-index', { anchor: SettingsAnchor.Labeling })) } > - Go to Bitcoin Unit Settings + Go to Labeling