aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-06-11 17:30:30 -0400
committerBobby <[email protected]>2023-06-11 17:30:30 -0400
commit9bd7bae4fabec85504d1c0595c0707261be70010 (patch)
treec23c0c8598c2115ce3a1ea43979bd16211f30e97
parentd70dd0f2cfc4e583192f39f33d0d8bbfd1f326b7 (diff)
downloadthatcomputerscientist-9bd7bae4fabec85504d1c0595c0707261be70010.tar.xz
thatcomputerscientist-9bd7bae4fabec85504d1c0595c0707261be70010.zip
Fix Article image max-height on Phones
-rw-r--r--static/css/phone_compatibility.css1
-rw-r--r--static/css/styles.css6
-rw-r--r--templates/blog/partials/base.html4
3 files changed, 7 insertions, 4 deletions
diff --git a/static/css/phone_compatibility.css b/static/css/phone_compatibility.css
index 6f754d01..3bf27e48 100644
--- a/static/css/phone_compatibility.css
+++ b/static/css/phone_compatibility.css
@@ -203,7 +203,6 @@ I am not sure yet.
#article-body img {
width: 100% !important;
height: auto !important;
- max-height: auto !important;
margin: 15px 0 !important;
float: none !important;
}
diff --git a/static/css/styles.css b/static/css/styles.css
index 5bec1046..95e597bf 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -387,7 +387,6 @@ blockquote {
float: left;
margin: 5px 11px 5px 0px;
max-width: 710px;
- max-height: 300px;
}
#article-body img.block,
@@ -490,4 +489,9 @@ blockquote {
.post-body {
line-height: 15px;
}
+
+ #article-body img,
+ #editor-container img {
+ max-height: 300px;
+ }
} \ No newline at end of file
diff --git a/templates/blog/partials/base.html b/templates/blog/partials/base.html
index c454290e..fa8c8ac9 100644
--- a/templates/blog/partials/base.html
+++ b/templates/blog/partials/base.html
@@ -28,12 +28,12 @@
<link
type="text/css"
rel="stylesheet"
- href="{% static 'css/styles.css' %}"
+ href="{% static 'css/styles.css' %}?nocache=true"
/>
<link
type="text/css"
rel="stylesheet"
- href="{% static 'css/phone_compatibility.css' %}"
+ href="{% static 'css/phone_compatibility.css' %}?nocache=true"
/>
<link
rel="apple-touch-icon"