Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Variogram results table size #406

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

o-jorgensen
Copy link
Contributor

  • Set a fixed table width to avoid "jumping" and repositioning of columns
  • Tweak margins and spacing for better alignment
  • Add tooltip icon/information in some columns
  • Add a background colour to easier separate expanded rows from main rows
  • Right-align numeric values

Closes #392


Example screenshot with the changes in this PR:

image

@o-jorgensen o-jorgensen self-assigned this Dec 13, 2024
Comment on lines +306 to +317
(isOwner ? (
<Switch
onChange={(e: ChangeEvent<HTMLInputElement>) => {
updateStatus(e.target.checked, row.original);
}}
checked={checkedStatus(row.original)}
disabled={!isOwner}
></Switch>
)
/>
) : (
<Tooltip title="Only model owners can change the publish status">
<Switch checked={checkedStatus(row.original)} disabled />
</Tooltip>
))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point here was to not only disable the switch if isOwner is false, but to also wrap it in a Tooltip to explain why. Perhaps there is an easier way of doing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variogram results table size
1 participant