Giter VIP home page Giter VIP logo

Comments (8)

wcjordan avatar wcjordan commented on July 23, 2024

That sound reasonable to me. Any chance you'd like to create a PR?

The class is specified here as className={cx('public/fixedDataTableCell/cellContent')}.

from fixed-data-table-2.

KamranAsif avatar KamranAsif commented on July 23, 2024

Padding is only added via the css. You can add

.public_fixedDataTableCell_cellContent {
  padding: 0px;
}

to your css.
Example: https://jsfiddle.net/vm0tLbbq/

from fixed-data-table-2.

alecf avatar alecf commented on July 23, 2024

I was considering submitting a PR, I just think adding a global CSS rule to your app as a way around this seems.. like the wrong way to handle this.

from fixed-data-table-2.

KamranAsif avatar KamranAsif commented on July 23, 2024

Yeah its not ideal, but this library absolutely requires the css file also be included.
This is what happens when you don't: https://jsfiddle.net/gpuz7dL8/

from fixed-data-table-2.

KamranAsif avatar KamranAsif commented on July 23, 2024

Sorry, closed this issue prematurely. If you want to put a PR that allows you to override the padding or the cellContent class, please go for it!

from fixed-data-table-2.

KamranAsif avatar KamranAsif commented on July 23, 2024

@alecf Would you be able to put up that PR?

from fixed-data-table-2.

alecf avatar alecf commented on July 23, 2024

I'll see what I can do.

My inclination is towards inline styles here though - i.e. moving the 8px out of the stylesheet and into FixedDataTableCellDefault.js - but that's fairly different than the current styling of the rest of the table. Any recommendations before I dive in? I just want to make sure I take the right approach before I put together a PR. How likely is it that this project will go down the Aphrodite route? (as mentioned in #51, cross-referencing this issue)

from fixed-data-table-2.

wcjordan avatar wcjordan commented on July 23, 2024

It looks like the Aphrodite approach in the cross referenced issue doesn't require any changes to FDT. Could you try that approach in your application (I intend to create and commit an example of it over the next week)?

If you have any concerns with that approach, please list them in the cross referenced thread. For now I'm going to close this issue and recommend the Aphrodite approach.

from fixed-data-table-2.

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.