framework/js
Alexander Skvortsov 1d2f0ca407
Header UI fixes (#2371)
* Revert "Fix header contents moving when opening modal (#2131)"
* Fix header contents moving when modal opened/closed.

Conditionally apply the navbar-fixed-top class only when needed, so that we can take advantage of it without always having the navbar in position:fixed, as was done in the previous solution. That resulted in a clash with custom headers.

* Show header on refresh of scrolled page

Due to some magic in Mithril 0.1's context:retain flag, some DOM elements were cached across page reloads. Since that has been eliminated, if we refresh the page and we are scrolled down, the "affix" class which makes the header fixed (and as a result, visible) isn't applied until the first scroll. We fix this by running ScrollListener.update() immediately to set initial navbar state.
2020-10-09 19:05:53 -04:00
..
dist Bundled output for commit 245f3c6846 [skip ci] 2020-10-07 20:25:22 +00:00
src Header UI fixes (#2371) 2020-10-09 19:05:53 -04:00
.prettierrc.json Configure prettier via JSON file 2020-04-17 10:44:36 +02:00
admin.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
forum.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
package-lock.json Mithril 2 update (#2255) 2020-09-23 22:40:37 -04:00
package.json Mithril 2 update (#2255) 2020-09-23 22:40:37 -04:00
shims.d.ts Remove Mithril namespace export from shims.d.ts (#2347) 2020-10-02 19:34:06 -04:00
tsconfig.json Mithril 2 update (#2255) 2020-09-23 22:40:37 -04:00
webpack.config.js Initial TypeScript infrastructure (#2206) 2020-07-03 14:47:44 +02:00