Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i scale the device #20

Open
HamzaHamani opened this issue Dec 11, 2023 · 2 comments
Open

how can i scale the device #20

HamzaHamani opened this issue Dec 11, 2023 · 2 comments

Comments

@HamzaHamani
Copy link

the iphone x device is getting out of container , and i want to scall it down. HOW CAN I DO THAT?

@zheeeng
Copy link
Owner

zheeeng commented Jan 9, 2024

If you do not mind the bounding box size doesn't fit the scaled container. You can try use transform: scale(0.5).

@smile675
Copy link

If you do not mind the bounding box size doesn't fit the scaled container. You can try use transform: scale(0.5).

scale down works to reduce the size, but it still occupy the initial size.
Screenshot 2024-07-30 213928

 <div className="flex flex-wrap">
          <div className="w-full md:w-1/2  flex h-full bg-green-400">
            <div className=" flex bg-red scale-50">
              <Mobile>
                <ProfileUi />
              </Mobile>
            </div>
          </div>
          <div>
            <h1>Profile</h1>
            <p>
              Lorem, ipsum dolor sit amet consectetur adipisicing elit. Cumque,
              voluptatibus.
            </p>
          </div>
        </div>

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

No branches or pull requests

3 participants