Git Product home page Git Product logo

Comments (2)

martinianol avatar martinianol commented on September 26, 2024

Hi,

I solved this issue with renderRow passing a TableRow component with childrens.

Screen.Recording.2023-09-14.at.10.49.33.mov

I gave the table a rowHeight of 64px as prop
I gave the TableRow height: 100% and max-height: 48px. This will limit the height of the visual row to 48px even though the table row has a 64px
margin-top: 4px
margin-bottom: 12px

So visually you have a 48px row with a 16px gap between each other

export const renderRow = (children: ReactNode, rowData: any) => {
  if (!rowData) return children;

  return (
    <TableRow>
        {children}
    </TableRow>
  );
};

const TableRow = styled.div`
  margin: 4px 12px 12px 4px; //margins on right and left are for the box shadows to be seen. make sure to add it to the row header for alignment
  height: 100%;
  max-height: 48px;
  background-color:  white
  box-shadow: 0px 3px 6px 0.08
  transition: box-shadow 0.05s linear 0s;
  :hover {
    box-shadow: 0px 3px 6px 0.25
  }
`;

from rsuite-table.

martinianol avatar martinianol commented on September 26, 2024

For comment above Im closing this one

from rsuite-table.

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.