Skip to content

Commit

Permalink
Add "Commands" tooltip on hover to the list commands Button in Consol…
Browse files Browse the repository at this point in the history
…e View (#139)

* Add "Commands" tooltip to the list commands icon in Console View
Fixes #138

Signed-off-by: Snehil Shah <[email protected]>

* Format Code: `npm run format`

Signed-off-by: Snehil Shah <[email protected]>

* Fix Failing ESLint Checks

Signed-off-by: Snehil Shah <[email protected]>

---------

Signed-off-by: Snehil Shah <[email protected]>
  • Loading branch information
Snehil-Shah authored Jan 17, 2024
1 parent a0fcc82 commit 5a6c4eb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
9 changes: 6 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions src/pages/Console.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { LinearProgress, alpha, Fab } from '@mui/material';
import { LinearProgress, alpha, Fab, Tooltip } from '@mui/material';
import { useTheme } from '@mui/material/styles';
import Box from '@mui/material/Box';
import { Grid } from '@mui/material';
Expand Down Expand Up @@ -124,14 +124,16 @@ function Console() {
</Panel>
</PanelGroup>
</Grid>
<Fab
sx={{ position: 'absolute', bottom: '40px', right: '49px', boxShadow: 3 }}
color="success"
aria-label="add"
onClick={() => setOpenCommands(true)}
>
<Code />
</Fab>
<Tooltip title="Commands" placement="left" arrow>
<Fab
sx={{ position: 'absolute', bottom: '40px', right: '49px', boxShadow: 3 }}
color="success"
aria-label="add"
onClick={() => setOpenCommands(true)}
>
<Code />
</Fab>
</Tooltip>
<SpeedDialMenu
openHistory={() => setOpenHistory(true)}
openSavedCode={() => setOpenSavedCode(true)}
Expand Down

0 comments on commit 5a6c4eb

Please sign in to comment.