chinwagsocial/app/javascript/mastodon/reducers
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
..
accounts.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
accounts_counters.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
accounts_map.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
alerts.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
announcements.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
blocks.js Add explanation to mute dialog, refactor and clean up mute/block UI (#11992) 2019-09-29 21:46:05 +02:00
boosts.js Add dropdown for boost privacy in boost confirmation modal (#15704) 2021-02-11 00:53:12 +01:00
compose.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
contexts.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
conversations.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
custom_emojis.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
domain_lists.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
dropdown_menu.js Fix dropdown menu positions when scrolling (#22916) 2023-01-11 21:58:46 +01:00
filters.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
height_cache.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
history.js Add edit history to web UI (#17390) 2022-02-09 01:17:07 +01:00
index.js Add server banner to web app, add GET /api/v2/instance to REST API (#19294) 2022-10-05 03:47:56 +02:00
list_adder.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
list_editor.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
lists.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
markers.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
media_attachments.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
meta.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
missed_updates.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
modal.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
mutes.js Add duration parameter to muting. (#13831) 2020-10-13 01:01:14 +02:00
notifications.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
picture_in_picture.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
polls.js Fix poll options not rendering text after vote/refresh (#10189) 2019-03-06 05:35:52 +01:00
push_notifications.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
relationships.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
search.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
server.js Change about page to be mounted in the web UI (#19345) 2022-10-13 14:42:37 +02:00
settings.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
status_lists.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
statuses.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
suggestions.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
tags.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
timelines.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
trends.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00
user_lists.js Enable eslint:recommended ruleset (#22433) 2022-12-19 00:51:37 +09:00