Skip to content

Commit 1e765cb

Browse files
authored
fix(ui): Fix compact view styling; fix context path link overflow; standardize type icons in context path (datahub-project#14284)
1 parent b6437b6 commit 1e765cb

File tree

32 files changed

+49
-141
lines changed

32 files changed

+49
-141
lines changed

datahub-web-react/src/app/entityV2/Access/RoleEntity.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ export class RoleEntity implements Entity<Role> {
3232
return (
3333
<TagOutlined
3434
className={TYPE_ICON_CLASS_NAME}
35-
style={{
36-
fontSize,
37-
color: color || '#BFBFBF',
38-
}}
35+
style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }}
3936
/>
4037
);
4138
};

datahub-web-react/src/app/entityV2/application/ApplicationEntity.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ export class ApplicationEntity implements Entity<Application> {
5757
return (
5858
<AppWindow
5959
className={TYPE_ICON_CLASS_NAME}
60-
style={{
61-
fontSize,
62-
color: color || '#BFBFBF',
63-
}}
60+
style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }}
6461
/>
6562
);
6663
};

datahub-web-react/src/app/entityV2/businessAttribute/BusinessAttributeEntity.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,7 @@ export class BusinessAttributeEntity implements Entity<BusinessAttribute> {
4141
);
4242
}
4343

44-
return (
45-
<GlobalOutlined
46-
style={{
47-
fontSize,
48-
color: color || '#BFBFBF',
49-
}}
50-
/>
51-
);
44+
return <GlobalOutlined style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }} />;
5245
};
5346

5447
displayName = (data: BusinessAttribute) => {

datahub-web-react/src/app/entityV2/chart/ChartEntity.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ export class ChartEntity implements Entity<Chart> {
9494
return (
9595
<LineChartOutlined
9696
className={TYPE_ICON_CLASS_NAME}
97-
style={{
98-
fontSize,
99-
color: color || '#BFBFBF',
100-
}}
97+
style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }}
10198
/>
10299
);
103100
};

datahub-web-react/src/app/entityV2/container/ContainerEntity.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ export class ContainerEntity implements Entity<Container> {
5959
return (
6060
<FolderOutlined
6161
className={TYPE_ICON_CLASS_NAME}
62-
style={{
63-
fontSize,
64-
color: color || '#BFBFBF',
65-
}}
62+
style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }}
6663
/>
6764
);
6865
};

datahub-web-react/src/app/entityV2/dashboard/DashboardEntity.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,7 @@ export class DashboardEntity implements Entity<Dashboard> {
9393
);
9494
}
9595

96-
return (
97-
<DashboardOutlined
98-
style={{
99-
fontSize,
100-
color: color || '#BFBFBF',
101-
}}
102-
/>
103-
);
96+
return <DashboardOutlined style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }} />;
10497
};
10598

10699
isSearchEnabled = () => true;

datahub-web-react/src/app/entityV2/dataContract/DataContractEntity.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ export class DataContractEntity implements Entity<DataContract> {
2424
return (
2525
<FileOutlined
2626
className={TYPE_ICON_CLASS_NAME}
27-
style={{
28-
fontSize,
29-
color: color || '#BFBFBF',
30-
}}
27+
style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }}
3128
/>
3229
);
3330
};

datahub-web-react/src/app/entityV2/dataFlow/DataFlowEntity.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ export class DataFlowEntity implements Entity<DataFlow> {
5858
return (
5959
<ShareAltOutlined
6060
className={TYPE_ICON_CLASS_NAME}
61-
style={{
62-
fontSize,
63-
color: color || '#BFBFBF',
64-
}}
61+
style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }}
6562
/>
6663
);
6764
};

datahub-web-react/src/app/entityV2/dataJob/DataJobEntity.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ export class DataJobEntity implements Entity<DataJob> {
7373
return (
7474
<ConsoleSqlOutlined
7575
className={TYPE_ICON_CLASS_NAME}
76-
style={{
77-
fontSize,
78-
color: color || '#BFBFBF',
79-
}}
76+
style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }}
8077
/>
8178
);
8279
};

datahub-web-react/src/app/entityV2/dataPlatform/DataPlatformEntity.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ export class DataPlatformEntity implements Entity<DataPlatform> {
2121
return (
2222
<DatabaseOutlined
2323
className={TYPE_ICON_CLASS_NAME}
24-
style={{
25-
fontSize,
26-
color: color || '#BFBFBF',
27-
}}
24+
style={{ fontSize: fontSize || 'inherit', color: color || 'inherit' }}
2825
/>
2926
);
3027
};

0 commit comments

Comments
 (0)