Skip to content

Commit

Permalink
Limit width of images in writeup to viewport.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecc521 committed Feb 27, 2020
1 parent 9f4faaa commit 79595d1
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ https://fonts.googleapis.com/css?family=Noto Sans HK&text=★☆⬆⬇
font-size: inherit;
}

.riverWriteup img {
max-width: 98vw; /*Prevent images from overflowing the screen. */
}

.emptyStars {
position:static;
top:0px;
Expand Down
2 changes: 1 addition & 1 deletion packages/allPages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/allPages.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/riverExpansion.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const {createDeviceNotificationsWidget, createEmailNotificationsWidget} = requir

function createExpansion(button, river) {
var div = document.createElement("div")

div.className = "riverWriteup"
div.innerHTML = ""

//Only show a link if river.dam is a link. This allows rivers to be marked as dams and explanations to be put in the writeups.
Expand Down

0 comments on commit 79595d1

Please sign in to comment.