Merge pull request #304 from joshr4/improve-overflow-menu-button

Improve overflow menu button
This commit is contained in:
Kieran 2023-02-16 19:40:33 +00:00 committed by GitHub
commit 7c6c944c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -154,6 +154,10 @@
font-feature-settings: "tnum";
}
.reaction-pill-icon {
margin: auto;
}
.reaction-pill .reaction-pill-number {
margin-left: 8px;
font-feature-settings: "tnum";
@ -216,3 +220,15 @@
.note .reactions-link:hover {
text-decoration: underline;
}
.close-menu {
position: absolute;
width: 100vw;
height: 100vh;
top: -400px;
left: -600px;
}
.close-menu-container {
position: absolute;
}

View File

@ -209,6 +209,13 @@ export default function NoteFooter(props: NoteFooterProps) {
function menuItems() {
return (
<>
<div className="close-menu-container">
{/* This menu item serves as a "close menu" button;
it allows the user to click anywhere nearby the menu to close it. */}
<MenuItem>
<div className="close-menu" />
</MenuItem>
</div>
{prefs.enableReactions && (
<MenuItem onClick={() => setShowReactions(true)}>
<Heart />