ISSUE-206: fixed description icon position (#278)

This commit is contained in:
Shailesh Parmar 2021-08-23 20:52:29 +05:30 committed by GitHub
parent cf0dcf8142
commit 9bd624f4af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 22 deletions

View File

@ -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"

View File

@ -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"