More fixes for the compose button context menu

This commit is contained in:
Lim Chee Aun 2025-03-06 17:16:10 +08:00
parent 14a9230242
commit 457cf8c620
3 changed files with 6 additions and 3 deletions

View file

@ -1740,7 +1740,7 @@ body:has(.media-modal-container + .status-deck) .media-post-link {
} }
.menu-post-text { .menu-post-text {
max-width: 250px; max-width: 40em;
overflow: hidden; overflow: hidden;
/* ellipsis 2 lines */ /* ellipsis 2 lines */
white-space: normal; white-space: normal;

View file

@ -150,6 +150,9 @@ export default function ComposeButton() {
style: { style: {
zIndex: 101, zIndex: 101,
}, },
onClick: () => {
menuRef.current?.closeMenu?.();
},
}} }}
submenuOpenDelay={600} submenuOpenDelay={600}
> >

4
src/locales/en.po generated
View file

@ -570,14 +570,14 @@ msgstr ""
msgid "Compose" msgid "Compose"
msgstr "" msgstr ""
#: src/components/compose-button.jsx:159 #: src/components/compose-button.jsx:162
#: src/components/nav-menu.jsx:260 #: src/components/nav-menu.jsx:260
#: src/pages/scheduled-posts.jsx:31 #: src/pages/scheduled-posts.jsx:31
#: src/pages/scheduled-posts.jsx:76 #: src/pages/scheduled-posts.jsx:76
msgid "Scheduled Posts" msgid "Scheduled Posts"
msgstr "Scheduled Posts" msgstr "Scheduled Posts"
#: src/components/compose-button.jsx:172 #: src/components/compose-button.jsx:175
msgid "Add to thread" msgid "Add to thread"
msgstr "Add to thread" msgstr "Add to thread"