Skip to content

Commit

Permalink
use overflow: auto instead of scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawan Kumar authored and Pawan Kumar committed May 10, 2024
1 parent 1c03ef0 commit 004c3ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/client/src/pages/Editor/IDE/EditorPane/UI/Add.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const AddWidgets = (props: { focusSearchInput?: boolean }) => {
onCloseClick={closeButtonClickHandler}
titleMessage={EDITOR_PANE_TEXTS.widgets_create_tab_title}
/>
<Flex flexDirection="column" gap="spaces-3" overflowX="scroll">
<Flex flexDirection="column" gap="spaces-3" overflowX="auto">
<UIEntitySidebar focusSearchInput={props.focusSearchInput} isActive />
</Flex>
</>
Expand Down
9 changes: 5 additions & 4 deletions app/client/src/pages/Editor/widgetSidebar/UIEntitySidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {
WidgetTags,
} from "constants/WidgetConstants";
import { WIDGET_TAGS } from "constants/WidgetConstants";
import { SearchInput, Text } from "design-system";
import { Flex, SearchInput, Text } from "design-system";
import Fuse from "fuse.js";
import { debounce } from "lodash";
import React, { useEffect, useMemo, useRef, useState } from "react";
Expand Down Expand Up @@ -109,9 +109,10 @@ function UIEntitySidebar({
type="text"
/>
</div>
<div
className="flex-grow px-3 mt-2 overflow-y-scroll"
<Flex
className="flex-grow px-3 overflow-y-scroll"
data-testid="t--widget-sidebar-scrollable-wrapper"
pt="spaces-2"
>
{isEmpty && (
<Text
Expand Down Expand Up @@ -150,7 +151,7 @@ function UIEntitySidebar({
);
})}
</div>
</div>
</Flex>
</div>
);
}
Expand Down

0 comments on commit 004c3ca

Please sign in to comment.