nextcloud / announcementcenter

📢 Announcement Center for Nextcloud
https://apps.nextcloud.com/apps/announcementcenter
GNU Affero General Public License v3.0
39 stars 24 forks source link

Fit images to the parent element in announcement #373

Open elhananjair opened 3 years ago

elhananjair commented 3 years ago

Steps to reproduce

  1. Insert an image to detail of announcement

Expected behaviour

I expect the image resides or fits the width of the parent container/element.

Actual behaviour

The image width exceeds the size of the parent element

Server configuration

Operating system: Fedora Server Web server: Apache Database: PostgreSQL PHP version: 7.4.21 Nextcloud version: (see Nextcloud admin page) 21.0.2 Where did you install Nextcloud from: Official Website

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser: Chromium Operating system: Fedora 34

announcemnt-image-cut announcement

elhananjair commented 3 years ago

I think setting the element width to 100% will fix the problem, I tried to set it on browser to test it, and it is now inherits the parent element width so that it doesn't escape from the parent width. But couldn't find a source file to permanently change that property, or I think this can be fixed by you @nickvergessen. Thanks announcement-fix