Skip to content

Commit f5a4856

Browse files
committed
Fix: index obscuring document on iOS version 15
Media prompts to hide the index for small screens, such as on mobile, were being ignored by Apple devices running iOS 15 or earlier. These devices lack support for range operators, so using range prefixes instead fixes the issue.
1 parent 5bc480f commit f5a4856

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vellum-doc",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "A simple web component",
55
"main": "vellum-doc.js",
66
"module": "vellum-doc.js",

src/vellum-doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class VellumDocument extends LitElement {
6363
);
6464
}
6565
66-
@media (width < 700px) {
66+
@media (max-width: 700px) {
6767
#document {
6868
margin-left: 0;
6969
}

0 commit comments

Comments
 (0)