diff --git a/public/style.css b/public/style.css
index 9437d9e..c72b7e0 100644
--- a/public/style.css
+++ b/public/style.css
@@ -447,13 +447,24 @@ form.nsfw div {
.expando {
display: none;
max-width: 587px;
+ position: relative;
color: #000;
}
.expando.open{
display: block;
}
-.expando img {
- max-width: 100%;
+.expando .image {
+ display: inline-block;
+ overflow: hidden;
+ resize: both;
+ width: 100%;
+ background-repeat: no-repeat;
+ background-size: contain;
+ background-position: top left;
+}
+.expando .image img {
+ visibility: hidden;
+ width: 100%;
}
.expando .md {
background-color: #fafafa;
diff --git a/templates/frontpage.html b/templates/frontpage.html
index f6b75d6..b603641 100644
--- a/templates/frontpage.html
+++ b/templates/frontpage.html
@@ -2,17 +2,19 @@
{{ if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}
-
+
diff --git a/templates/main.html b/templates/main.html
index 5aa6f5c..bd8a22c 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -3,7 +3,7 @@
{{if and .Posts .PostID }}{{ (index .Posts 0).Post.Name}} : {{.CommunityName}}{{else if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}
-
+
diff --git a/templates/post.html b/templates/post.html
index b2f178b..9e30139 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -75,7 +75,9 @@
{{ markdown .State.Host .Post.Body.String }}
{{ end }}
{{ if isImage .Post.URL.String}}
+
+
{{ end }}