Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Remove min width on image quickview #10364

Closed
wants to merge 2 commits into from
Closed

Remove min width on image quickview #10364

wants to merge 2 commits into from

Conversation

EJanuszewski
Copy link
Contributor

Only a small change, seems there's no need for a min-width on the container either.

I have tested with various image sizes and all seem to behave as expected, I will send the pull request shortly.

Negative margin has been removed and the height calculated properly
using calc()
@JeffryBooher
Copy link
Contributor

@EJanuszewski you can tag the issues that a pull request addresses by adding #(issue-number), #(issue-number), etc.... That links the issues to the pull request so that it's easy to follow.

#10180
#5960

@EJanuszewski
Copy link
Contributor Author

@JeffryBooher Ok thanks, hopefully any newer things I do i'll get it right first time, I'm new to referring pulls and issues onto someone elses project.

@JeffryBooher
Copy link
Contributor

@EJanuszewski no worries :)

@@ -404,6 +403,7 @@ a, img {

.image {
position: relative;
height: calc(~'100% - 53px');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does the hardcoded value 53px come from?

@peterflynn
Copy link
Member

Are the brackets.less changes intended to be part of this PR? The description at top only mentions #10362...

@EJanuszewski
Copy link
Contributor Author

Sorry I should have put a comment in, 53 is the height of the meta data + its margin(38+15).

Fixes for both are just in the brackets.less, it just happened that to fix the chopping off issue also seemed to fix the resizing, hopefully that helps, I'm on my phone so can't type loads.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants