benjaminkott / bootstrap_package

Bootstrap Package delivers a full configured theme for TYPO3, based on the Bootstrap CSS Framework.
https://www.bootstrap-package.com/
MIT License
338 stars 205 forks source link

Render gallery container in TextpicAbove and TextmediaAbove only if files exist #1441

Open Hawkeye1909 opened 1 year ago

Hawkeye1909 commented 1 year ago

Feature Request

Is your feature request related to a problem? Please describe

Sometimes editors add CE like textpic but do not add an image at all. Since the default setting for 'imageorient' is 'Above, center' (0) and due to the fact a gap is added between gallery and text (here), there is a not needed space above the text when the container is rendered.

Describe the solution you'd like

Only render the gallery container in the files TextpicAbove.html and TextmediaAbove.html if files exist to prevent the gap.