diff --git a/app/Resources/static/themes/material/css/nav.scss b/app/Resources/static/themes/material/css/nav.scss
index 147f163fd..b7288278c 100644
--- a/app/Resources/static/themes/material/css/nav.scss
+++ b/app/Resources/static/themes/material/css/nav.scss
@@ -131,6 +131,11 @@ nav {
display: none;
}
+.entry-nav-top--sticky {
+ position: sticky;
+ top: 0;
+}
+
@media (min-width: 993px) {
.button-collapse {
display: none;
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js
index 2926cad11..4b194d00a 100755
--- a/app/Resources/static/themes/material/index.js
+++ b/app/Resources/static/themes/material/index.js
@@ -17,6 +17,13 @@ import './js/shortcuts/entry';
/* Theme style */
import './css/index.scss';
+const stickyNav = () => {
+ const nav = $('.js-entry-nav-top');
+ $('[data-toggle="actions"]').click(() => {
+ nav.toggleClass('entry-nav-top--sticky');
+ });
+};
+
$(document).ready(() => {
// sideNav
$('.button-collapse').sideNav();
@@ -36,6 +43,7 @@ $(document).ready(() => {
initFilters();
initExport();
initRandom();
+ stickyNav();
const toggleNav = (toShow, toFocus) => {
$('.nav-panel-actions').hide(100);
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
index ecd85a84e..8cbed4366 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
@@ -8,7 +8,7 @@
-