diff options
| author | Bobby <[email protected]> | 2023-05-01 05:24:03 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-01 05:24:03 -0400 |
| commit | 5db4fef9c6e187d774d2974dfdec1e9f65151c18 (patch) | |
| tree | ea7506bb45ea6791ce510d3d8da12f2886d0ded0 | |
| parent | 1102adee47b232ab8ed2e8950bd8b4c3320ae681 (diff) | |
| download | thatcomputerscientist-5db4fef9c6e187d774d2974dfdec1e9f65151c18.tar.xz thatcomputerscientist-5db4fef9c6e187d774d2974dfdec1e9f65151c18.zip | |
Revert back image paddings in articles
| -rw-r--r-- | blog/views.py | 2 | ||||
| -rw-r--r-- | static/css/styles.css | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/blog/views.py b/blog/views.py index 8439417f..e12752b5 100644 --- a/blog/views.py +++ b/blog/views.py @@ -111,7 +111,7 @@ def post(request, slug): images = soup.find_all('img') for i in range(len(images)): if i % 2 != 0: - images[i]['style'] = 'float: right; padding: 13px 0px 13px 13px;' + images[i]['style'] = 'float: right; padding: 0px 0px 0px 13px;' # remove all paragraphs which are: "<p class="ql-align-justify"><br></p>" for p in soup.find_all('p', class_='ql-align-justify'): diff --git a/static/css/styles.css b/static/css/styles.css index e7f49ed5..bed7d0be 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -343,7 +343,7 @@ blockquote { #article-body img, #editor-container img { height: 300px; float: left; - padding: 13px 13px 13px 0px; + padding: 0px 13px 0px 0px; } #article-body h2, #article-body h1, #editor-container h2, #editor-container h1 { |
