# Bug OP-8450 - Images in Dashboard are stretched in Safari 

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-8450

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.2.4 |
| Observed in versions |  |
| Sprint | 11.2.4 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: 11.1.2

Operating System / Browser / OpenProject language: MacOS 11.1 / Safari 14.0.2 / English

### **Steps to reproduce:**

1.  Add an High-Res Image to a block in the project overviewpage
2.  View this project overview in safari

### **Actual Behavior**

Image is reduced to fit in width, but strechted to full high:

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20762/content"></div></figure>

### **Expected Behavior**

Image should be resized in height to:

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20763/content"></div></figure>

The effect is described here: [https://techstacker.com/how-to-prevent-image-stretching-with-flexbox/](https://techstacker.com/how-to-prevent-image-stretching-with-flexbox/)

Adding `align-self: center;`  to .op-uc-image fixes the problem.
