make tooltip less obstructive
This commit is contained in:
@@ -8,6 +8,7 @@ const HtmlTooltip = styled(({ className, ...props }: TooltipProps) => (
|
|||||||
<Tooltip {...props} classes={{ popper: className }} />
|
<Tooltip {...props} classes={{ popper: className }} />
|
||||||
))(({ theme }) => ({
|
))(({ theme }) => ({
|
||||||
[`& .${tooltipClasses.tooltip}`]: {
|
[`& .${tooltipClasses.tooltip}`]: {
|
||||||
|
placement: "right",
|
||||||
backgroundColor: "#f5f5f9",
|
backgroundColor: "#f5f5f9",
|
||||||
color: "rgba(0, 0, 0, 0.87)",
|
color: "rgba(0, 0, 0, 0.87)",
|
||||||
maxWidth: 220,
|
maxWidth: 220,
|
||||||
@@ -49,6 +50,8 @@ export default function InstructionMenu() {
|
|||||||
return (
|
return (
|
||||||
<Grid item key={key++} xs={1}>
|
<Grid item key={key++} xs={1}>
|
||||||
<HtmlTooltip
|
<HtmlTooltip
|
||||||
|
placement="right"
|
||||||
|
disableInteractive
|
||||||
key={key++}
|
key={key++}
|
||||||
title={
|
title={
|
||||||
<>
|
<>
|
||||||
@@ -59,7 +62,7 @@ export default function InstructionMenu() {
|
|||||||
<div draggable="true" onDragStart={(event) => handleDragStart(instruction, event)}>
|
<div draggable="true" onDragStart={(event) => handleDragStart(instruction, event)}>
|
||||||
<Card key={key++} sx={{ height: "3rem", width: "3rem" }}>
|
<Card key={key++} sx={{ height: "3rem", width: "3rem" }}>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Typography sx={{ userSelect: "none" }}>{instruction.symbol}</Typography>
|
<Typography sx={{ userSelect: "none" }}>{instruction.emoji}</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user