Skip to content

Commit

Permalink
made the upvotes popup scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
KaleemNeslit committed Nov 11, 2024
1 parent 2148d0f commit c48f1ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ const CWUpvoteSmall = ({
onClick={handleClick}
/>
{reactors.length > 0 && (
<CWPopover body={popoverContent} {...popoverProps} />
<CWPopover
className="popover-content"
body={popoverContent}
{...popoverProps}
/>
)}
</>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export const ReactionButton = ({
body={getDisplayedReactorsForPopup({
reactors,
})}
className="popover-content"
{...popoverProps}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
@import '../../../../../../../styles/shared';

.ReactionButtonSkeleton {
border: none
border: none;
}

.popover-content {
max-height: 150px;
overflow: scroll;
}

0 comments on commit c48f1ff

Please sign in to comment.