[Glitch] Remove hardcoded width from dropdown overlays

Port ff5f21d505 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
lolsob-rspec
Claire 2023-01-12 16:43:02 +01:00
parent 97cb17d6a2
commit 05e9c71cfc
3 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ export default class ComposerOptionsDropdown extends React.PureComponent {
popperConfig={{ strategy: 'fixed', onFirstUpdate: this.handleOverlayEnter }} popperConfig={{ strategy: 'fixed', onFirstUpdate: this.handleOverlayEnter }}
> >
{({ props, placement }) => ( {({ props, placement }) => (
<div {...props} style={{ ...props.style, width: 350, maxWidth: '100vw' }}> <div {...props}>
<div className={`dropdown-animation privacy-dropdown__dropdown ${placement}`}> <div className={`dropdown-animation privacy-dropdown__dropdown ${placement}`}>
<DropdownMenu <DropdownMenu
items={items} items={items}

View File

@ -307,7 +307,7 @@ class LanguageDropdown extends React.PureComponent {
<Overlay show={open} placement={'bottom'} flip target={this.findTarget} popperConfig={{ strategy: 'fixed', onFirstUpdate: this.handleOverlayEnter }}> <Overlay show={open} placement={'bottom'} flip target={this.findTarget} popperConfig={{ strategy: 'fixed', onFirstUpdate: this.handleOverlayEnter }}>
{({ props, placement }) => ( {({ props, placement }) => (
<div {...props} style={{ ...props.style, width: 280 }}> <div {...props}>
<div className={`dropdown-animation language-dropdown__dropdown ${placement}`} > <div className={`dropdown-animation language-dropdown__dropdown ${placement}`} >
<LanguageDropdownMenu <LanguageDropdownMenu
value={value} value={value}

View File

@ -13,7 +13,7 @@
.emoji-picker-dropdown__menu { .emoji-picker-dropdown__menu {
background: $simple-background-color; background: $simple-background-color;
position: absolute; position: relative;
box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4); box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
border-radius: 4px; border-radius: 4px;
margin-top: 5px; margin-top: 5px;