Mobile UI improvements (#1104)

* Use dropdown for o-counter instead of hover
* Always show previews on non-hoverable device
* Add IntersectionObserver polyfill
* Prevent video previews playing fullscreen
This commit is contained in:
WithoutPants
2021-02-26 16:13:34 +11:00
committed by GitHub
parent af6b21a428
commit a9ac176e91
9 changed files with 98 additions and 60 deletions

View File

@@ -3,6 +3,7 @@ import { shouldPolyfill as shouldPolyfillCanonicalLocales } from "@formatjs/intl
import { shouldPolyfill as shouldPolyfillLocale } from "@formatjs/intl-locale/should-polyfill";
import { shouldPolyfill as shouldPolyfillNumberformat } from "@formatjs/intl-numberformat/should-polyfill";
import { shouldPolyfill as shouldPolyfillPluralRules } from "@formatjs/intl-pluralrules/should-polyfill";
import "intersection-observer/intersection-observer";
// Required for browsers older than August 2020ish. Can be removed at some point.
replaceAll.shim();