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

request support mobile view #256

Open
moradi-morteza opened this issue Apr 24, 2022 · 1 comment
Open

request support mobile view #256

moradi-morteza opened this issue Apr 24, 2022 · 1 comment

Comments

@moradi-morteza
Copy link

hi,
is there any update for support mobile view?
its good in desktop but not good for mobile

@SyahmiNawi
Copy link

SyahmiNawi commented Dec 2, 2022

Incase anyone want to overwrite css for mobile responsive, here is my sass code

.vicp-img{
  max-width:unset !important;
}

@media (max-width: 640px) {
  .vicp-wrap {
    width: 100% !important;
    max-width: 400px;
    height: auto !important;
    max-height: 450px;
    border-radius: 5px !important;
  }

  .vicp-step2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .vicp-crop {
    margin-left: auto;
    margin-right: auto;
  }

  .vicp-crop-left {
    display: block !important;
    float: none !important;
  }

  .vicp-crop-right {
    display: block !important;
    float: none !important;
  }

  .vicp-preview {
    height: auto !important;
    display: flex;
    justify-content: center;
  }

  .vicp-preview-item {
    display: inline-block;
  }

  .vicp-close {
    right: 5px !important;
  }
}

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

2 participants