Closed eirik-morken closed 10 months ago
In the DashSubsurfaceViewer MapLayer type in python the mouse-position information box is missing some padding to the right it seems?
Any idea what might cause this? Can you reproduce it with any of the storybook examples?
Bonus issue: Is there a way to get a "mesh" unit as well? Now only the position coordinate has units where I can put whatever I want. E.g., m, meters etc.
Please create a separate issue for this.
I tested by removing the entire css-stylesheet and then it returned to normal. Could you give me the class and other properties that could be accessed by the css-stylesheet? If this is not easy to get for you then I guess worst case is to debug 500 lines of css-stylesheet 😅
The readout panel is styled using @mui styled
. Not sure how that interacts with CSS stylesheets. This is the relevant code:
const StyledTable = styled(Table)({
"& > *": {
backgroundColor: "#ffffffcc",
color: "#000000ff",
border: "2px solid #ccc",
padding: "0px",
borderRadius: "5px",
position: "absolute",
bottom: 0,
left: 0,
marginLeft: "3px",
marginBottom: "3px",
},
});
const StyledTableCell = styled(TableCell)({
border: "none",
padding: 0,
width: "20px",
});
const StyledTableRow = styled(TableRow)({
"& > *": {
padding: 0,
},
});
Found the culprit!
th:last-child, td:last-child {
padding-right: 0;
}
Webviz-subsurface-components python version 1.0.0
In the DashSubsurfaceViewer MapLayer type in python the mouse-position information box is missing some padding to the right it seems? And I am not able to access the object to fix the css-styling as far as I can tell.
Bonus issue: Is there a way to get a "mesh" unit as well? Now only the position coordinate has units where I can put whatever I want. E.g., m, meters etc.There is a css stylesheet for some general objects, but I don't see how that could interfere with this object.
My code: