Skip to content

Commit

Permalink
style(search): Border is too thick for sidebar (datahub-project#9528)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitappt authored Dec 28, 2023
1 parent e343b69 commit 4de2c24
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions datahub-web-react/src/app/search/sidebar/BrowseSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import useSidebarEntities from './useSidebarEntities';
import { ANTD_GRAY_V2 } from '../../entity/shared/constants';
import { ProfileSidebarResizer } from '../../entity/shared/containers/profile/sidebar/ProfileSidebarResizer';


export const MAX_BROWSER_WIDTH = 500;
export const MIN_BROWSWER_WIDTH = 200;

Expand All @@ -18,7 +17,6 @@ export const SidebarWrapper = styled.div<{ visible: boolean; width: number }>`
width: ${(props) => (props.visible ? `${props.width}px` : '0')};
min-width: ${(props) => (props.visible ? `${props.width}px` : '0')};
transition: width 250ms ease-in-out;
border-right: 1px solid ${(props) => props.theme.styles['border-color-base']};
background-color: ${ANTD_GRAY_V2[1]};
background: white;
`;
Expand Down Expand Up @@ -53,7 +51,12 @@ const BrowseSidebar = ({ visible }: Props) => {

return (
<>
<SidebarWrapper visible={visible} width={browserWidth} id={SEARCH_RESULTS_BROWSE_SIDEBAR_ID} data-testid="browse-v2">
<SidebarWrapper
visible={visible}
width={browserWidth}
id={SEARCH_RESULTS_BROWSE_SIDEBAR_ID}
data-testid="browse-v2"
>
<SidebarHeader>
<Typography.Text strong>Navigate</Typography.Text>
</SidebarHeader>
Expand Down

0 comments on commit 4de2c24

Please sign in to comment.