mustachemo / data-runner

Intuitive and integrity driven data clean up tool
https://drive.google.com/file/d/1C_1nEKgnzB0OEN7P5VxO2JOAMSAkF4LI/view?usp=sharing
0 stars 0 forks source link

Use CSS for DMC #69

Closed Koltheguy closed 1 year ago

Koltheguy commented 1 year ago

layout.py is bloated with copied and pasted styles the following 13 line tooltip for example can be simplified to use a CSS class with a different label and children this child div can be simplified to a CSS class with a different background color another possible child can be a button

Dash Mantine Components has a styles API that interacts with CSS

dmc.Tooltip(
  withArrow=True,
  width=200,
  multiline=True,
  position="right",
  transition="fade",
  transitionDuration=300,
  label="Empty/Corrupt Cells: Cells that are empty, NaN, or None",
  children=html.Div(style={
    'display': 'inline-block',
    'width': '20px',
    'height': '20px',
    'backgroundColor': '#f87171',
    "margin": "0.5rem",
  })
)
mustachemo commented 1 year ago

this does not take precedence over other issues. I'm closing it for now. Talk to me before you assign issues.