mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 19:48:17 +00:00
ISSUE-206: fixed description icon position (#278)
This commit is contained in:
parent
cf0dcf8142
commit
9bd624f4af
@ -267,20 +267,22 @@ const SchemaTable: FunctionComponent<Props> = ({
|
||||
<td className="tw-group tableBody-cell tw-relative">
|
||||
<div>
|
||||
<div
|
||||
className="tw-cursor-pointer hover:tw-underline"
|
||||
className="tw-cursor-pointer hover:tw-underline tw-flex"
|
||||
data-testid="description"
|
||||
id={`column-description-${index}`}
|
||||
onClick={() => handleEditColumn(column, index)}>
|
||||
{column.description ? (
|
||||
<RichTextEditorPreviewer
|
||||
markdown={column.description}
|
||||
/>
|
||||
) : (
|
||||
<span className="tw-no-description">
|
||||
No description added
|
||||
</span>
|
||||
)}
|
||||
<button className="tw-opacity-0 tw-ml-1 group-hover:tw-opacity-100 focus:tw-outline-none">
|
||||
<div>
|
||||
{column.description ? (
|
||||
<RichTextEditorPreviewer
|
||||
markdown={column.description}
|
||||
/>
|
||||
) : (
|
||||
<span className="tw-no-description">
|
||||
No description added
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<button className="tw-self-start tw-w-8 tw-h-auto tw-opacity-0 tw-ml-1 group-hover:tw-opacity-100 focus:tw-outline-none">
|
||||
<SVGIcons
|
||||
alt="edit"
|
||||
icon="icon-edit"
|
||||
|
||||
@ -300,17 +300,19 @@ const TagsPage = () => {
|
||||
setIsEditTag(true);
|
||||
setEditTag(tag);
|
||||
}}>
|
||||
<div className="tw-cursor-pointer hover:tw-underline">
|
||||
{tag.description ? (
|
||||
<RichTextEditorPreviewer
|
||||
markdown={tag.description}
|
||||
/>
|
||||
) : (
|
||||
<span className="tw-no-description">
|
||||
No description added
|
||||
</span>
|
||||
)}
|
||||
<button className="tw-opacity-0 tw-ml-1 group-hover:tw-opacity-100 focus:tw-outline-none">
|
||||
<div className="tw-cursor-pointer hover:tw-underline tw-flex">
|
||||
<div>
|
||||
{tag.description ? (
|
||||
<RichTextEditorPreviewer
|
||||
markdown={tag.description}
|
||||
/>
|
||||
) : (
|
||||
<span className="tw-no-description">
|
||||
No description added
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<button className="tw-self-start tw-w-8 tw-h-auto tw-opacity-0 tw-ml-1 group-hover:tw-opacity-100 focus:tw-outline-none">
|
||||
<SVGIcons
|
||||
alt="edit"
|
||||
icon="icon-edit"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user