feat: hide scroll back to content button

This commit is contained in:
Arnošt Pleskot 2023-09-12 12:23:13 +02:00
parent 84b19a77d7
commit b99bf74c3d
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -461,7 +461,7 @@ const LayerUI = ({
renderCustomStats={renderCustomStats} renderCustomStats={renderCustomStats}
/> />
)} )}
{appState.scrolledOutside && ( {appState.scrolledOutside && !appState.scrollConstraints && (
<button <button
className="scroll-back-to-content" className="scroll-back-to-content"
onClick={() => { onClick={() => {

View file

@ -197,7 +197,8 @@ export const MobileMenu = ({
{renderAppToolbar()} {renderAppToolbar()}
{appState.scrolledOutside && {appState.scrolledOutside &&
!appState.openMenu && !appState.openMenu &&
!appState.openSidebar && ( !appState.openSidebar &&
!appState.scrollConstraints && (
<button <button
className="scroll-back-to-content" className="scroll-back-to-content"
onClick={() => { onClick={() => {