Fix InvisibleChat button getting hidden by themes
This commit is contained in:
parent
c525672777
commit
19c9a13273
@ -70,6 +70,13 @@ function ChatBarIcon() {
|
|||||||
<Tooltip text="Encrypt Message">
|
<Tooltip text="Encrypt Message">
|
||||||
{({ onMouseEnter, onMouseLeave }) => (
|
{({ onMouseEnter, onMouseLeave }) => (
|
||||||
// size="" = Button.Sizes.NONE
|
// size="" = Button.Sizes.NONE
|
||||||
|
/*
|
||||||
|
many themes set "> button" to display: none, as the gift button is
|
||||||
|
the only directly descending button (all the other elements are divs.)
|
||||||
|
Thus, wrap in a div here to avoid getting hidden by that.
|
||||||
|
flex is for some reason necessary as otherwise the button goes flying off
|
||||||
|
*/
|
||||||
|
<div style={{ display: "flex" }}>
|
||||||
<Button
|
<Button
|
||||||
aria-haspopup="dialog"
|
aria-haspopup="dialog"
|
||||||
aria-label="Encrypt Message"
|
aria-label="Encrypt Message"
|
||||||
@ -94,7 +101,9 @@ function ChatBarIcon() {
|
|||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
</Tooltip >
|
</Tooltip >
|
||||||
);
|
);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user