fix: account for safe area for floating buttons on mobile (#5420)

This commit is contained in:
David Luzar 2022-07-19 15:44:14 +02:00 committed by GitHub
parent 792f238d16
commit a7937681e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 18 deletions

View File

@ -227,7 +227,9 @@ export const MobileMenu = ({
) : null}
<footer className="App-toolbar">
{renderAppToolbar()}
{appState.scrolledOutside && !appState.openMenu && (
{appState.scrolledOutside &&
!appState.openMenu &&
!appState.isLibraryOpen && (
<button
className="scroll-back-to-content"
onClick={() => {

View File

@ -212,16 +212,14 @@
}
}
.ToolIcon.ToolIcon__library {
top: 100px;
top: calc(var(--sat) + 100px);
}
.ToolIcon.ToolIcon__lock {
margin-inline-end: 0;
top: 60px;
top: calc(var(--sat) + 60px);
}
.ToolIcon.ToolIcon__penMode {
margin-inline-end: 0;
top: 140px;
top: calc(var(--sat) + 140px);
}
}

View File

@ -32,7 +32,6 @@
}
.ToolIcon.ToolIcon__lock {
margin-inline-end: var(--space-factor);
&.ToolIcon_type_floating {
margin-left: 0.1rem;
}