Browse Source
Fix floating action button obscuring last element (#18332 )
Fixes #18331
Add some padding below the last element of scrollable lists when the FAB is
shown in order for users to always be able to fully see the last element.
closed-social-glitch-2
Claire
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
1 deletions
app/javascript/mastodon/features/ui/components/columns_area.js
app/javascript/styles/mastodon/components.scss
@ -234,7 +234,7 @@ class ColumnsArea extends ImmutablePureComponent {
< / d i v >
< / d i v >
< div className = 'columns-area__panels__main' >
< div className = { ` columns-area__panels__main ${ floatingActionButton && 'with-fab' } ` } >
< TabsBar key = 'tabs' / >
{ content }
< / d i v >
@ -2469,6 +2469,10 @@ a.account__display-name {
. columns-area__panels__pane--compositional {
display : none ;
}
. with-fab . scrollable . item-list : last-child {
padding-bottom : 5 . 25rem ;
}
}
@media screen and ( min-width : 600 px + ( 285 px * 1 ) + ( 10 px * 1 )) {