Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide overflow scroll #226

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
hide overflow scroll
zuies committed Dec 19, 2023
commit b6ed2186e789e5d90dbd6c0d3cf8025fb8fc01ac
18 changes: 1 addition & 17 deletions src/components/global/FilterPopover/FilterRolesPopover.tsx
Original file line number Diff line number Diff line change
@@ -235,22 +235,6 @@ function FilterRolesPopover({ handleSelectedRoles }: IFilterRolesPopover) {
}
};

const renderRoleItem = (option: IRoles) => (
<div className="flex items-center border bg-white border-[#D1D1D1] rounded-md px-3">
<span
className="w-2 h-2 rounded-full mr-2"
style={{
backgroundColor:
option.color !== 0
? `#${option.color.toString(16).padStart(6, '0')}`
: '#96A5A6',
flexShrink: 0,
}}
/>
<div className="text-sm whitespace-nowrap">{option.name}</div>
</div>
);

return (
<div>
<TcButton
@@ -363,7 +347,7 @@ function FilterRolesPopover({ handleSelectedRoles }: IFilterRolesPopover) {
</FormControl>
<div
ref={scrollableDivRef}
className="border max-h-[300px] min-w-[250px] overflow-y-auto border-gray-200 rounded-md p-1"
className="border max-h-[300px] min-w-[250px] overflow-y-auto border-gray-200 rounded-md p-1 overflow-x-hidden"
onScroll={handleScroll}
>
{fetchedRoles && fetchedRoles.results.length > 0 ? (