mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 01:15:08 +00:00
This commit is contained in:
parent
44df02010a
commit
de2b2c6428
@ -13,7 +13,7 @@
|
|||||||
import { Select, SelectProps, Space, Tooltip, Typography } from 'antd';
|
import { Select, SelectProps, Space, Tooltip, Typography } from 'antd';
|
||||||
import { DefaultOptionType } from 'antd/lib/select';
|
import { DefaultOptionType } from 'antd/lib/select';
|
||||||
import { AxiosError } from 'axios';
|
import { AxiosError } from 'axios';
|
||||||
import { debounce } from 'lodash';
|
import { debounce, isEmpty } from 'lodash';
|
||||||
import React, { FC, useCallback, useMemo, useState } from 'react';
|
import React, { FC, useCallback, useMemo, useState } from 'react';
|
||||||
import Loader from '../../components/Loader/Loader';
|
import Loader from '../../components/Loader/Loader';
|
||||||
import { FQN_SEPARATOR_CHAR } from '../../constants/char.constants';
|
import { FQN_SEPARATOR_CHAR } from '../../constants/char.constants';
|
||||||
@ -70,8 +70,9 @@ const AsyncSelectList: FC<AsyncSelectListProps> = ({
|
|||||||
.map((tag) => {
|
.map((tag) => {
|
||||||
const displayName = tag.data?.displayName;
|
const displayName = tag.data?.displayName;
|
||||||
const parts = Fqn.split(tag.label);
|
const parts = Fqn.split(tag.label);
|
||||||
const lastPartOfTag =
|
const lastPartOfTag = isEmpty(displayName)
|
||||||
displayName ?? parts.slice(-1).join(FQN_SEPARATOR_CHAR);
|
? parts.slice(-1).join(FQN_SEPARATOR_CHAR)
|
||||||
|
: displayName;
|
||||||
parts.pop();
|
parts.pop();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -97,7 +97,7 @@ const TagsV1 = ({
|
|||||||
const tagColorBar = useMemo(
|
const tagColorBar = useMemo(
|
||||||
() =>
|
() =>
|
||||||
color ? (
|
color ? (
|
||||||
<div className="tag-color-bar" style={{ background: color }} />
|
<div className="tag-color-bar" style={{ borderColor: color }} />
|
||||||
) : null,
|
) : null,
|
||||||
[color]
|
[color]
|
||||||
);
|
);
|
||||||
|
@ -44,9 +44,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tag-color-bar {
|
.tag-color-bar {
|
||||||
width: 5px;
|
border-left: 5px solid @tag-background-color;
|
||||||
height: auto;
|
|
||||||
background: @tag-background-color;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags-label {
|
.tags-label {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user