Modal scale problem


Topic: Modal scale problem

Belovol pro asked 6 years ago

Enconter Modal scale problems. Look this screenshots. When size prop !=fluid, image distorted in chrome browser, while in mozilla works as expected. Image in Card component, for example, scaled properly in either browser. Here is rendering modal's component code. Help!  
const ModalCard = (props) => 
    
    <Modal size="lg" isOpen={props.modalOpen} >
   
        <ModalBody >
     
            <Media className=" row ">
                <Media left className="d-flex col-6 align-self-center justify-content-center mx-3">
                    <Media object src={props.tort.image} className="img-fluid" alt=""  />
                </Media>
                <Media body className="col-6 d-flex flex-column align-self-stretch">
                    <Media heading>
                        {props.tort.name}
                    </Media>
                    
                        <div>{props.tort.description}</div>
                        {props.tort.filling ? <div><strong>Начинка</strong> - {props.tort.filling}</div>: null}
                        {props.tort.topping ? <div><strong>Покрытие</strong> - {props.tort.topping}</div>: null}
                        {props.tort.decor ? <div><strong>Декор</strong> - {props.tort.decor}</div>: null}
                        <div className="d-flex font-small mt-auto justify-content-center">
                              <Button color="pink" onClick={e => props.click_modal("show",e)}>Закрыть</Button>
                        </div>  
                    
                </Media>
            </Media>
         
    
        </ModalBody>
      
    </Modal>

Belovol pro commented 6 years ago

I'm very sorry for spamming. Don't understand - why.


Anna Morawska staff answered 6 years ago

Hi  Belovol, I've noticed that removing d-flex class from this line  helps:
<Media left className="d-flex col-6 align-self-center justify-content-center mx-3">

Please try it out and let us know if it works as expected :) Best, Ania

Belovol pro answered 6 years ago

Yes, it works. Thank you
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.7.1
  • Device: 4xIntel Core i7-4510U CPU @2 GHz
  • Browser: Google Chrome V- 68.0.3440.8
  • OS: openSUSE Leap 42.3
  • Provided sample code: No
  • Provided link: Yes