1
0
REI-Fixed/app/javascript/mastodon/features/compose/components
Peter Simonsson fd33bcb3b2
Fix dropdown menu positions when scrolling (#22916)
* Update react-overlays to latest version

* Fix breaking changes in dropdown menus

* Use react-overlays built-in arrow positioning feature
* Re-implemented `.dropdown-menu__arrow` to have a defined width and height to improve positioning
* Moved wrapping div (`.dropdown-menu` from `DropdownMenu` to `Dropdown`)
* Wrap button in a span to solve issue with ref
* Temporarily remove animations

* Fix breaking changes in emoji picker

* Wrap EmojiPickerMenu in a div where react-overlays’ ref is added

* Fix breaking changes in language dropdown

* Fix breaking changes in privacy dropdown

* Fix breaking changes in search form

* Add animations back using `@keyframes`

* Fix arrow color in light theme

* Fix linting issue

* Remove unused `mounted` state

* Remove `placement` state from components and redux

And remove the placement state from props of the menu components.

* Remove abolution position to fix flip issue

* Remove z-index to fix modals and overlay positions

* Fix lint issues

* Set placement in privacy and language components

Copy the placement state into the `PrivacyDropdown` and `LanguageDropdown` components, to apply correct styling to the buttons depending on which placement the Overlay has.

* Move `placement` state to correct component
2023-01-11 21:58:46 +01:00
..
action_bar.js Change layout of posts in web UI (#19423) 2022-10-25 19:02:21 +02:00
autosuggest_account.js Display full username in tooltip on search and autosuggest #7478 (#7920) 2018-07-01 04:16:13 +02:00
character_counter.js Count all URLs in text as 23 characters flat, do not count domain part of usernames (#4427) 2017-07-29 00:06:29 +02:00
compose_form.js Add aria-hidden to content warning field when dimmed so that it is not confusing to screen reader users (#22568) 2023-01-05 13:39:58 +01:00
emoji_picker_dropdown.js Fix dropdown menu positions when scrolling (#22916) 2023-01-11 21:58:46 +01:00
language_dropdown.js Fix dropdown menu positions when scrolling (#22916) 2023-01-11 21:58:46 +01:00
navigation_bar.js Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
poll_button.js Add UI for creating polls (#10184) 2019-03-06 04:53:37 +01:00
poll_form.js Adding 12 hours option for polls (#21131) 2022-12-15 16:20:34 +01:00
privacy_dropdown.js Fix dropdown menu positions when scrolling (#22916) 2023-01-11 21:58:46 +01:00
reply_indicator.js Change in-app links to keep you in-app (#20540) 2022-11-13 21:10:20 +01:00
search_results.js Fix button to dismiss suggestions not showing up in search results (#19325) 2022-10-09 12:28:59 +02:00
search.js Fix dropdown menu positions when scrolling (#22916) 2023-01-11 21:58:46 +01:00
text_icon_button.js Fix compose form submission reloading web interface (#19762) 2022-11-05 13:43:37 +01:00
upload_button.js Improve wording of the “Add media” button tooltip (#13954) 2020-06-26 00:14:29 +02:00
upload_form.js Fix upload progress not communicating processing phase in web UI (#19530) 2022-10-29 20:05:53 +02:00
upload_progress.js Fix upload progress not communicating processing phase in web UI (#19530) 2022-10-29 20:05:53 +02:00
upload.js Add the ability to edit media attachment metadata for any unattached media (#20402) 2022-11-11 21:22:17 +01:00
warning.js Add option to reduce motion (#5393) 2017-10-16 09:36:15 +02:00