Coder Social home page Coder Social logo

Comments (7)

nanxiaobei avatar nanxiaobei commented on May 24, 2024 1

Please try version 2.4.0, now antd-img-crop do not import antd/lib/style/index.css any more.
But the Modal of antd-img-crop uses the default CSS of antd, if you want to override them, you must add the custom CSS.
There is a parent class you can use:

.antd-img-crop-modal {
  /* Custom styles */
}

from antd-img-crop.

nanxiaobei avatar nanxiaobei commented on May 24, 2024

Hi,
Can you provide a reproducible demo?
Need some more detailed specifics to see what happend, thanks.

from antd-img-crop.

tzgc avatar tzgc commented on May 24, 2024

Hi,
Unfortunately, I don't have a 'codesandbox' demo for you to recreate the issue as it is specific to my environment. Just wondering that what CSS you are using and is there any way to disable it?

Thanks.

from antd-img-crop.

nanxiaobei avatar nanxiaobei commented on May 24, 2024

Sorry, I can't fix a 'problem' without 'seen' it.

from antd-img-crop.

ahuynh-s avatar ahuynh-s commented on May 24, 2024

Hello,
I am also having this problem. Here is a code sandbox to reproduce the problem.
Thank you.

from antd-img-crop.

nanxiaobei avatar nanxiaobei commented on May 24, 2024

Hi, because antd-img-crop is rely on antd. styles changed because antd-img-crop imported antd/lib/style/index.css, the basic styles of antd.

Since you use antd-img-crop, you must use antd, you must use Upload component of antd, and this file is bound to imported.

So that's not a problem.

from antd-img-crop.

ahuynh-s avatar ahuynh-s commented on May 24, 2024

Hi,
I am already using antd and have antd/lib/style/index.css imported. I am using custom css to override that css. When I use antd-img-crop, antd/lib/style/index.css gets imported an additional time and overwrites my css.
Thanks.

from antd-img-crop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.