diff --git a/web/components/answers/answers-panel.tsx b/web/components/answers/answers-panel.tsx index 05c432e504..1c65e814ff 100644 --- a/web/components/answers/answers-panel.tsx +++ b/web/components/answers/answers-panel.tsx @@ -98,6 +98,7 @@ export function AnswersPanel(props: { showSetDefaultSort?: boolean setDefaultAnswerIdsToGraph?: (ids: string[]) => void defaultAddAnswer?: boolean + floatingSearchClassName?: string }) { const { contract, @@ -112,6 +113,7 @@ export function AnswersPanel(props: { showSetDefaultSort, setDefaultAnswerIdsToGraph, defaultAddAnswer, + floatingSearchClassName, } = props const { outcomeType, resolutions } = contract const addAnswersMode = @@ -251,7 +253,10 @@ export function AnswersPanel(props: { canAddAnswer={canAddAnswer} text={query} setText={setQuery} - className={'bg-canvas-0 sticky top-[48px] z-40'} + className={clsx( + 'bg-canvas-0 sticky z-40', + floatingSearchClassName ?? 'top-[48px]' + )} sort={sort} setSort={setSort} showDefaultSort={showSetDefaultSort && contract.sort !== sort} diff --git a/web/components/bet/bet-dialog.tsx b/web/components/bet/bet-dialog.tsx index d7e05f10ac..16ab7ef7df 100644 --- a/web/components/bet/bet-dialog.tsx +++ b/web/components/bet/bet-dialog.tsx @@ -90,7 +90,7 @@ export function MultiBetDialog(props: { <> {question} @@ -109,6 +109,7 @@ export function MultiBetDialog(props: { onAnswerHover={() => null} onAnswerClick={() => null} defaultAddAnswer={contract.addAnswersMode === 'ANYONE'} + floatingSearchClassName={'-top-8 pt-4'} /> )}