Merge branch 'i1533' into 'main'

autosuggest css should be relative, not fixed

Closes #1533

See merge request soapbox-pub/soapbox!2763
This commit is contained in:
Alex Gleason 2023-09-27 13:15:23 +00:00
commit 8bce0f050e

View file

@ -538,7 +538,7 @@ const AutosuggestPlugin = ({
? ReactDOM.createPortal(
<div
className={clsx({
'mt-6 fixed z-1000 shadow bg-white dark:bg-gray-900 rounded-lg py-1 space-y-0 dark:ring-2 dark:ring-primary-700 focus:outline-none': true,
'mt-6 relative w-max z-1000 shadow bg-white dark:bg-gray-900 rounded-lg py-1 space-y-0 dark:ring-2 dark:ring-primary-700 focus:outline-none': true,
hidden: suggestionsHidden || suggestions.isEmpty(),
block: !suggestionsHidden && !suggestions.isEmpty(),
})}