Skip to content

Commit

Permalink
Fix mobile styling
Browse files Browse the repository at this point in the history
  • Loading branch information
wcedmisten committed Feb 19, 2024
1 parent aa26c0a commit 767b09e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion articles/keyboard-shortcuts-userscripts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ With this one line in the header, I can easily register shortcuts:
### Opening the search page

This was the simplest shortcut to write. We just set the location to the URL of the search page.
When ctrl + alt + n is pressed, the tab is redirected to https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfPMN/pmn.cfm
When ctrl + alt + n is pressed, the tab is redirected to the search page.

```javascript
VM.shortcut.register('ctrl-alt-n', () => {
Expand Down
12 changes: 11 additions & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,14 @@ th {
width: 20px;
opacity: .3;
}
}
}

/* Don't let long links overflow, because they will break
the entire UI on mobile by making everything else smaller */
.footnotes {
overflow: hidden;
}

a {
overflow: hidden;
}

0 comments on commit 767b09e

Please sign in to comment.