Skip to content
This repository was archived by the owner on Jan 31, 2021. It is now read-only.

Commit b2e9e16

Browse files
committed
Set post image fit to contain
1 parent 136c3e2 commit b2e9e16

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This theme is being used in my [blog](http://davidlecina.com/).
2424

2525
## Compatibility
2626

27-
**The current StayPuft version is 2.9.1, is tested against Ghost 2.13.1 and is expected to work down to Ghost 2.0.0.**
27+
**The current StayPuft version is 2.9.1.1, is tested against Ghost 2.13.1 and is expected to work down to Ghost 2.0.0.**
2828

2929
If the current version of StayPuft is not compatible with the version of Ghost you're running, try looking for an older one in the [Releases section](https://github.com/dlecina/StayPuft/releases).
3030

assets/built/screen.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/staypuft.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/staypuft.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,8 @@ make sure this only happens on large viewports / desktop-ish devices.
719719

720720
.post-full-image img {
721721
width: 100%;
722-
height: 800px;
723-
object-fit: cover;
722+
max-height: 800px;
723+
object-fit: contain;
724724
}
725725

726726
@media (max-width: 1170px) {
@@ -729,13 +729,13 @@ make sure this only happens on large viewports / desktop-ish devices.
729729
border-radius: 0;
730730
}
731731
.post-full-image img {
732-
height: 600px;
732+
max-height: 600px;
733733
}
734734
}
735735

736736
@media (max-width: 800px) {
737737
.post-full-image img {
738-
height: 400px;
738+
max-height: 400px;
739739
}
740740
}
741741

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A personal blogging theme for Ghost. Beautiful, minimal and responsive.",
44
"homepage": "https://github.com/dlecina/StayPuft",
55
"demo": "https://github.com/dlecina/StayPuft#demo",
6-
"version": "2.9.1",
6+
"version": "2.9.1.1",
77
"engines": {
88
"ghost": ">=2.0.0",
99
"ghost-api": "v2"

0 commit comments

Comments
 (0)