Skip to content

Commit

Permalink
fix: fix pencil button location with bottom nav (#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Nov 22, 2022
1 parent fdec7b2 commit 347dab4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/build/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
--main-content-pad-top: 0px;
--main-content-pad-bottom: var(--main-content-pad-vertical);
--toast-gap-bottom: var(--nav-total-height);
--fab-gap-top: 0px;
}
</style>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/_components/compose/ComposeStickyButton.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

:global(.compose-box-button-sticky, .compose-box-button-fixed) {
z-index: 5000;
top: calc(var(--nav-total-height));
top: calc(var(--fab-gap-top));
}
</style>
<script>
Expand Down
1 change: 1 addition & 0 deletions src/scss/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
--nav-top: 0px;
--nav-bottom: initial;
--toast-gap-bottom: 0px; // used to position the Toast and Snackbar above the bottom nav
--fab-gap-top: var(--nav-total-height); // used to position the FAB (floating action button) below the top nav

//
// focus outline
Expand Down

0 comments on commit 347dab4

Please sign in to comment.