mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-08 00:27:05 +00:00
removed dash line and weird border radius in sidebar sections (#13266)
This commit is contained in:
parent
03025b67b5
commit
34feb0f3f1
@ -15,7 +15,7 @@ const colors = {
|
|||||||
700: '#2F3657', // should be deprecated
|
700: '#2F3657', // should be deprecated
|
||||||
800: '#272D48', // should be deprecated
|
800: '#272D48', // should be deprecated
|
||||||
900: '#231A58', // should be deprecated
|
900: '#231A58', // should be deprecated
|
||||||
1000: '#F1F3FD', // grays violet 0
|
1000: '#F1F3FD', // violet 0
|
||||||
1100: '#F1FBFE', // blue 0
|
1100: '#F1FBFE', // blue 0
|
||||||
1200: '#FBF3EF', // red 0
|
1200: '#FBF3EF', // red 0
|
||||||
1300: '#F7FBF4', // green 0
|
1300: '#F7FBF4', // green 0
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { colors } from '@components';
|
||||||
import DraftsOutlinedIcon from '@mui/icons-material/DraftsOutlined';
|
import DraftsOutlinedIcon from '@mui/icons-material/DraftsOutlined';
|
||||||
import EditOutlinedIcon from '@mui/icons-material/EditOutlined';
|
import EditOutlinedIcon from '@mui/icons-material/EditOutlined';
|
||||||
import { Row } from 'antd';
|
import { Row } from 'antd';
|
||||||
@ -46,7 +47,6 @@ export const SideBarSubSection = styled.div`
|
|||||||
}
|
}
|
||||||
&::-webkit-scrollbar-thumb {
|
&::-webkit-scrollbar-thumb {
|
||||||
background: #d6d6d6;
|
background: #d6d6d6;
|
||||||
-webkit-border-radius: 1ex;
|
|
||||||
-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
|
-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@ -233,8 +233,8 @@ export const Content = styled.div`
|
|||||||
padding-bottom: 12px;
|
padding-bottom: 12px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border-bottom: 1px dashed;
|
border-bottom: 1px solid;
|
||||||
border-color: rgba(0, 0, 0, 0.3);
|
border-color: ${colors.gray[100]};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@ -1,14 +1,12 @@
|
|||||||
|
import { colors } from '@components';
|
||||||
import { Typography } from 'antd';
|
import { Typography } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import { REDESIGN_COLORS } from '@app/entityV2/shared/constants';
|
|
||||||
|
|
||||||
const EmptyContentMessage = styled(Typography.Text)`
|
const EmptyContentMessage = styled(Typography.Text)`
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: ${REDESIGN_COLORS.DARK_GREY};
|
color: ${colors.gray[1700]};
|
||||||
opacity: 0.5;
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { colors } from '@components';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components/macro';
|
import styled from 'styled-components/macro';
|
||||||
|
|
||||||
@ -6,7 +7,7 @@ import { EntitySidebarSection, TabContextType, TabRenderType } from '@app/entity
|
|||||||
import { ENTITY_PROFILE_V2_SIDEBAR_ID } from '@app/onboarding/config/EntityProfileOnboardingConfig';
|
import { ENTITY_PROFILE_V2_SIDEBAR_ID } from '@app/onboarding/config/EntityProfileOnboardingConfig';
|
||||||
|
|
||||||
const Container = styled.div`
|
const Container = styled.div`
|
||||||
padding: 0px 18px 18px 18px;
|
padding: 0 12px 0 12px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Content = styled.div`
|
const Content = styled.div`
|
||||||
@ -14,10 +15,12 @@ const Content = styled.div`
|
|||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
|
|
||||||
padding-bottom: 12px;
|
padding-bottom: 12px;
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border-bottom: 1px dashed;
|
border-bottom: 1px solid;
|
||||||
border-color: rgba(0, 0, 0, 0.3);
|
border-color: ${colors.gray[100]};
|
||||||
|
border-radius: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
@ -27,7 +30,6 @@ const Content = styled.div`
|
|||||||
}
|
}
|
||||||
&::-webkit-scrollbar-thumb {
|
&::-webkit-scrollbar-thumb {
|
||||||
background: #cccccc;
|
background: #cccccc;
|
||||||
-webkit-border-radius: 1ex;
|
|
||||||
-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
|
-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import { KeyboardArrowDown, KeyboardArrowRight } from '@mui/icons-material';
|
import { colors } from '@components';
|
||||||
|
import { CaretDown, CaretRight } from '@phosphor-icons/react';
|
||||||
import { Collapse, Typography } from 'antd';
|
import { Collapse, Typography } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import { CountStyle } from '@app/entityV2/shared/SidebarStyledComponents';
|
import { CountStyle } from '@app/entityV2/shared/SidebarStyledComponents';
|
||||||
import { REDESIGN_COLORS } from '@app/entityV2/shared/constants';
|
|
||||||
|
|
||||||
const Container = styled.div`
|
const Container = styled.div`
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
@ -42,6 +42,14 @@ const StyledCollapse = styled(Collapse)`
|
|||||||
.ant-collapse-header-text {
|
.ant-collapse-header-text {
|
||||||
max-width: calc(100% - 50px);
|
max-width: calc(100% - 50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.ant-collapse {
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-collapse-item {
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const SectionHeader = styled.span<{ collapsible?: boolean }>`
|
const SectionHeader = styled.span<{ collapsible?: boolean }>`
|
||||||
@ -54,19 +62,18 @@ const Title = styled(Typography.Text)`
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
color: ${REDESIGN_COLORS.DARK_GREY};
|
color: ${colors.gray[600]};
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 20px;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledIcon = styled.div`
|
const StyledIcon = styled.div`
|
||||||
svg {
|
svg {
|
||||||
height: 18px;
|
height: 16px;
|
||||||
width: 18px;
|
width: 16px;
|
||||||
color: ${REDESIGN_COLORS.SECONDARY_LIGHT_GREY};
|
color: ${colors.gray[1800]};
|
||||||
stroke: ${REDESIGN_COLORS.SECONDARY_LIGHT_GREY};
|
|
||||||
stroke-width: 1px;
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -94,9 +101,7 @@ export const SidebarSection = ({
|
|||||||
return (
|
return (
|
||||||
<StyledCollapse
|
<StyledCollapse
|
||||||
ghost
|
ghost
|
||||||
expandIcon={({ isActive }) => (
|
expandIcon={({ isActive }) => <StyledIcon>{isActive ? <CaretDown /> : <CaretRight />} </StyledIcon>}
|
||||||
<StyledIcon>{isActive ? <KeyboardArrowDown /> : <KeyboardArrowRight />} </StyledIcon>
|
|
||||||
)}
|
|
||||||
defaultActiveKey={expandedByDefault ? title : ''}
|
defaultActiveKey={expandedByDefault ? title : ''}
|
||||||
>
|
>
|
||||||
<Collapse.Panel
|
<Collapse.Panel
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user