diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-01-12 16:43:02 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-01-12 17:48:10 +0100 |
commit | 598888a7c45a5ccbf7debfc0cdc630232b9cfce6 (patch) | |
tree | adc678b13a6d9bc04508c24394cdf42cf486e728 /app/javascript/flavours/glitch/features | |
parent | cef87ba86c9e997782ba7563abfa200e62c19ceb (diff) |
[Glitch] Remove hardcoded width from dropdown overlays
Port f4a6365f55c3b16494337e0880b42108cc4a171a to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features')
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/components/dropdown.js | 2 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/components/language_dropdown.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/dropdown.js b/app/javascript/flavours/glitch/features/compose/components/dropdown.js index 924618930..d98b311d9 100644 --- a/app/javascript/flavours/glitch/features/compose/components/dropdown.js +++ b/app/javascript/flavours/glitch/features/compose/components/dropdown.js @@ -221,7 +221,7 @@ export default class ComposerOptionsDropdown extends React.PureComponent { popperConfig={{ strategy: 'fixed', onFirstUpdate: this.handleOverlayEnter }} > {({ props, placement }) => ( - <div {...props} style={{ ...props.style, width: 350, maxWidth: '100vw' }}> + <div {...props}> <div className={`dropdown-animation privacy-dropdown__dropdown ${placement}`}> <DropdownMenu items={items} diff --git a/app/javascript/flavours/glitch/features/compose/components/language_dropdown.js b/app/javascript/flavours/glitch/features/compose/components/language_dropdown.js index 07d138f52..3a1fa0226 100644 --- a/app/javascript/flavours/glitch/features/compose/components/language_dropdown.js +++ b/app/javascript/flavours/glitch/features/compose/components/language_dropdown.js @@ -307,7 +307,7 @@ class LanguageDropdown extends React.PureComponent { <Overlay show={open} placement={'bottom'} flip target={this.findTarget} popperConfig={{ strategy: 'fixed', onFirstUpdate: this.handleOverlayEnter }}> {({ props, placement }) => ( - <div {...props} style={{ ...props.style, width: 280 }}> + <div {...props}> <div className={`dropdown-animation language-dropdown__dropdown ${placement}`} > <LanguageDropdownMenu value={value} |