Skip to content

Material UI Dialog Component is not responsive and can't see all screen #331

Open

Description

@belfortmaycon

Bug Report 🐛

I'm testing a Material UI Dialog and when opening the screen on playground the CSS is not applied and the screen size is not responsive not allowing to see the entire component

To Reproduce ✔️

  1. Create a simple component like in Material UI Dialog document https://material-ui.com/components/dialogs/#simple-dialogs
  2. Write a test to open the dialog and print the testing playground url
    https://codesandbox.io/s/frosty-cherry-k1gx8?file=/src/__tests__/GenericDialog.test.tsx
  3. Access the url and only can see a large image without scroll options

image

Expected behavior 🤔

Open the playground and see the screen with images in standard sizes

Suggested solution 🔦

I believe that the cause is not applying a css on screen, this way images are not resized.

Your Environment 💻

  • browser: Chrome
  • os: Mac

Activity

  1. smeijer commented on Mar 31, 2021

    @smeijer
    Member

    Hi!

    Can you share that playground url?

    I'm not sure if there is something that we can do to fix this. I don't think it's appropriate to also send all stylesheet and other potentially related code to testing-playground.com, when the test runner offers that link.

    Without diving into details here, I think the best way to debug issues in this kind of advanced scenarios, is using the browser extensions.

  2. added
    featureNew feature or request
    and removed
    bugSomething isn't working
    on Mar 31, 2021
  3. belfortmaycon commented on Mar 31, 2021

    @belfortmaycon
    Author

    I see... follow the link

    https://testing-playground.com/#markup=DwEwlgbgBAhgTmGBaAFmEICmA7AvAIgBc4BXTfAPmAHpwIq6o4B7AG0wIAc5MBnHQjEJhm2fFADGrGL14EAsiTAARRK2YBzJC2aFxvQgE92XZrzDDRALigAzMAA9MIANxQAXkjDYsDmwEYAZgAGYLcEDRRCG2DOBzcAI11CZgBbGLi3FM4M+Kh2W2ioWPjKUEhJaVkFJQAhGAkAaxAWTm1mXXF4RFR0LDwiUnIoA2MOfGZOBotDALcAd0wExoskYhhsc0tsG0npoygAJkOAVlTeSRIEsAkkBMx3MEw4AApggDoAFgAaYt+Pw6-fwASmK5yycA2WxEOygewkMyOp3Ol2ut3uj2eby+-3+70BUBBYN4LjKtEgDAqgmuPkwDgIwXEICEyEIfEIBH42GE2EwrAAyoI4HoqOT6OVoFIZHJ8Io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CBeTJ++EIfd-twPSATjjj3gfI+vBv6-xkOWOUICf5HxTvPd+YBJJwEMB1Ho4BSrsBAAQCqrAqony3jvMAj9b5XxvkgCefIyjeE4Ffb2SDP6wMgffWhV8kAAA5gEQKPmwvQcZoLjEPpgJoSQHDVW1GQAgm8NjEOYUfbcacEhklPhzLehDZHnyUD+ZgJBD4ACUwCcE4ABAeKj1E0FUcAU+cieFrEhE0cxGw1HOOsUQrRkFoKwVNBhAe4454LyXmwVe68qFTzlChbx8FEJJBAIYFsFB5BmHWDbPCKs4BEUQJYix1Awnc3FG2Xu2c85+KHiHEeY8qAJHIaIYhz8b5-xSvU1+pS6g1OSrowgrA1QPjjGvBsdIGR1kEQQapL8M5uM0UUi+7TKFr2oRQGa6oQCuR0TBbJribEeJ0XolAhjjGmKMk47Aooxk33yRc3mHj+5GWruUtklTgI2w8aoGqWBDKdAoD+dkmB3bik9n8zO0zWKvnIvHGE8lWkTh1GC7Y8lW4InLmUM5tSPHNNvlAppsyoXoqQJ07pvIQDjlxfinpSCUFoL6TSRsTVhlmlGe0mRZ9gVgFxWEygbENgSD5PADZJzJnMvEhE3RBijEmP-kclx-LqAoulW7AFALGD1lpI1HyzJBBrHZJyAQapWAAFEfBknlQxIAA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions