Skip to content

Commit

Permalink
chore: add scrolling for next actions panel (#4131)
Browse files Browse the repository at this point in the history
add scrolling for next actions

Co-authored-by: Dave Samojlenko <[email protected]>
  • Loading branch information
timarney and dsamojlenko authored Jul 31, 2024
1 parent c24721e commit 9ba59cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const MultiActionSelector = ({

return (
<>
<div className="flex justify-between border-b-2 border-black bg-gray-50 p-3 align-middle">
<div className="sticky top-0 flex justify-between border-b-2 border-black bg-gray-50 p-3 align-middle">
<div>
<SectionName lang={lang} sectionName={sectionName} />
<h3 className="mb-6 ml-2 mt-2 block text-sm font-normal">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SelectNextAction = ({
if (!hasPages) {
return (
<>
<div className="flex justify-between border-b-2 border-black bg-gray-50 p-3 align-middle">
<div className="sticky top-0 z-10 flex justify-between border-b-2 border-black bg-gray-50 p-3 align-middle">
<SectionName lang={lang} sectionName={sectionName} />
</div>
<div className="p-4">
Expand Down Expand Up @@ -115,7 +115,7 @@ export const SelectNextAction = ({

// If we have an item a question is selected
return (
<div>
<div className="m-0 h-[calc(100vh-150px)] w-full overflow-scroll">
{typesWithOptions.includes(item.type) ? (
/*
If the item (form element) has options
Expand Down

0 comments on commit 9ba59cb

Please sign in to comment.