Skip to content

Commit

Permalink
Fix: index obscuring document on iOS version 15
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rg-wood committed Apr 25, 2024
1 parent 5bc480f commit f5a4856
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vellum-doc",
"version": "0.4.1",
"version": "0.4.2",
"description": "A simple web component",
"main": "vellum-doc.js",
"module": "vellum-doc.js",
Expand Down
2 changes: 1 addition & 1 deletion src/vellum-doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class VellumDocument extends LitElement {
);
}
@media (width < 700px) {
@media (max-width: 700px) {
#document {
margin-left: 0;
}
Expand Down

0 comments on commit f5a4856

Please sign in to comment.