benjaminkott / benjaminkott/bootstrap_package

Wrong image width in containers when using "Insert Records"

Open
#1,478 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
355
Forks
212
Avg merge
1h 4m
Merged PRs (30d)
31

Description

# Bug Report

## Prerequisites

* [x] Can you reproduce the problem on TYPO3 v12.4 LTS
* [x] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Abenjaminkott+repo%3Abenjaminkott%2Fbootstrap_package) to see if your bug or enhancement is already reported?

## Description

Image widths are wrong, when inserting images via "Insert Records" content element in a multi column container.

## Steps to Reproduce

1. Install EXT:container
2. Create content element type "2 Columns 50%/50%"
3. Insert content element type "Images Only" in column 1
4. Create content element type "4 Columns"
5. Insert content element type "Insert Records" in column 1 and include previously created record "Images Only".

### Expected behavior

Width of image in element "2 Columns 50%/50%" is half the width.
Width of image in element "4 Columns" is 1/4 the width.

### Actual behavior

Width of image in element "4 Columns" is half the width.

### Screenshots

#### Backend view

![image](https://github.com/benjaminkott/bootstrap_package/assets/2690489/01e9029b-c0ef-42f5-9c43-f8e173e33047)

#### Frontend view

![image](https://github.com/benjaminkott/bootstrap_package/assets/2690489/9ba5a3a0-71de-4d25-a220-bd6e25f4395d)

Image 1 has width of 620 pixels, that's ok.
Image 2 has width of 620 pixels, that's incorrect, it should be 310 pixels.
Image 3 has width of 310 pixels, that's ok.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.