python-gsoc / python-blogs

Python Software Foundation GSoC Blog Platform. This system was used until 2024 but is no longer maintained.
http://python-gsoc.org/
GNU Affero General Public License v3.0
41 stars 61 forks source link

Images are not getting aligned correctly #530

Closed ganimtron-10 closed 1 year ago

ganimtron-10 commented 2 years ago

Describe the bug Currently, when I add an image/gif to the blog and try to align it to the center or to the right, it doesn't work as intended. After selecting the alignment from the given option it renders the image with the correct alignment, but after creating/saving the blog it automatically gets aligned to left. Please check out the below Screenshots to get a better idea.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Blog or edit any existing one.
  2. Add a new Image/GIF to the blog (if already have an image then skip to the next part).
  3. Select align center or `align right. Press Ok
  4. Create/Save the Blog.

Expected behavior The selected alignment should be applied to the image (ie. if align center is selected it should be applied to the blog after the creation/saving).

Screenshots

msedge_Ea6lHaNK7T

msedge_1K0AUf3bHJ

msedge_CuSpM31lEb

Old Blog with correct alignment image

Desktop (please complete the following information):