diff --git a/routes/_components/Layout.html b/routes/_components/Layout.html
index ed31d82b..e14c358a 100644
--- a/routes/_components/Layout.html
+++ b/routes/_components/Layout.html
@@ -1,6 +1,6 @@
-
+
@@ -13,22 +13,12 @@
import { store } from '../_store/store'
import InformationalFooter from './InformationalFooter.html'
- // Only focus the `.container` div on first load so it does not intefere
- // with other desired behaviours (e.g. you click a toot, you navigate from
- // a timeline view to a thread view, you press the back button, and now
- // you're still focused on the toot).
- let firstTime = true
-
export default {
components: {
Nav,
InformationalFooter
},
oncreate () {
- if (firstTime) {
- firstTime = false
- this.refs.container.focus()
- }
let { page } = this.get()
this.store.set({ currentPage: page })
},
diff --git a/routes/_components/Nav.html b/routes/_components/Nav.html
index 629f0de5..446a2fd8 100644
--- a/routes/_components/Nav.html
+++ b/routes/_components/Nav.html
@@ -22,7 +22,7 @@
left: 0;
right: 0;
top: 0;
- z-index: 10;
+ z-index: 20;
contain: content; /* see https://www.w3.org/TR/2018/CR-css-contain-1-20181108/#valdef-contain-content */
}
diff --git a/routes/_components/NavItem.html b/routes/_components/NavItem.html
index d5166d2a..4bdf6da8 100644
--- a/routes/_components/NavItem.html
+++ b/routes/_components/NavItem.html
@@ -159,6 +159,7 @@
import { on, emit } from '../_utils/eventBus'
import { mark, stop } from '../_utils/marks'
import { doubleRAF } from '../_utils/doubleRAF'
+ import { getScrollContainer } from '../_utils/scrollContainer'
export default {
oncreate () {
@@ -219,7 +220,7 @@
}
e.preventDefault()
e.stopPropagation()
- smoothScrollToTop(document.getElementsByClassName('container')[0])
+ smoothScrollToTop(getScrollContainer())
}
}
}
diff --git a/routes/_components/compose/ComposeBox.html b/routes/_components/compose/ComposeBox.html
index 2548fa1b..e5500a09 100644
--- a/routes/_components/compose/ComposeBox.html
+++ b/routes/_components/compose/ComposeBox.html
@@ -76,7 +76,7 @@
.compose-box-button-wrapper.compose-button-sticky {
position: -webkit-sticky;
position: sticky;
- top: 10px;
+ top: 52px; /* padding-top for .main-content plus 10px */
z-index: 5000;
}
@@ -95,7 +95,12 @@
max-width: calc(100vw - 40px);
}
.compose-box-button-wrapper.compose-button-sticky {
- top: 5px;
+ top: 57px; /* padding-top for .main-content plus 5px */
+ }
+ }
+ @media (max-width: 991px) {
+ .compose-box-button-wrapper.compose-button-sticky {
+ top: 62px; /* padding-top for .main-content plus 10px */
}
}
diff --git a/routes/_components/list/List.html b/routes/_components/list/List.html
index d3cab3f6..67872ff3 100644
--- a/routes/_components/list/List.html
+++ b/routes/_components/list/List.html
@@ -18,6 +18,8 @@