Skip to content

Feat(UI): troggle line numbers in editors #43

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

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

li-xin-yi
Copy link
Collaborator

@li-xin-yi li-xin-yi commented Nov 10, 2022

Toggle line numbers on or off by right click menu

image

close #37

@li-xin-yi li-xin-yi requested a review from lihebi November 10, 2022 01:57
const flipShowLineNumbers = useStore(store, (state) => state.flipShowLineNumbers);
return (
<div style={paneMenuStyle(props.x, props.y)}>
<MenuList className='paneContextMenu'>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's don't use CSS names because I would like the styles to be defined close to the component/script. Let's inline it, e.g.,

<MenuList sx={{display: "flex", p: "5px", ...}}>
    <MenuItem sx={{mr: "10px"}}> .. </MenuItem>
</MenuList>

Follow the styles here: https://mui.com/material-ui/react-menu/

// New Scope{" "}
// </Button>
// </Stack>
// </Box>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's remove this commented-out code.

Copy link
Collaborator

@lihebi lihebi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Xinyi!

@lihebi lihebi merged commit b8e16b1 into codepod-io:main Nov 10, 2022
@li-xin-yi li-xin-yi deleted the feat/troggle_line_number branch December 13, 2022 22:19
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.

Toggle control to display line numbers in a pod.
2 participants