Skip to content

Commit f8a401d

Browse files
fix(ui) Fix weird indents on schema table descriptions (#14652)
1 parent acd7236 commit f8a401d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

datahub-web-react/src/app/entityV2/dataset/profile/schema/components/SchemaDescriptionField.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const StyledViewer = styled(Editor)`
9898
const DescriptionWrapper = styled.span`
9999
display: inline-flex;
100100
align-items: center;
101+
width: 100%;
101102
`;
102103

103104
const AddModalWrapper = styled.div``;
@@ -219,13 +220,13 @@ export default function DescriptionField({
219220
customStyle={{ fontSize: '12px' }}
220221
scrollableY={false}
221222
/>
223+
{isSchemaEditable && isEdited && <EditedLabel>(edited)</EditedLabel>}
222224
</DescriptionWrapper>
223225
</Tooltip>
224226
{/* </StripMarkdownText> */}
225227
</>
226228
)
227229
)}
228-
{isSchemaEditable && isEdited && <EditedLabel>(edited)</EditedLabel>}
229230
{showAddModal && (
230231
<AddModalWrapper onClick={(e) => e.stopPropagation()}>
231232
<UpdateDescriptionModal

datahub-web-react/src/app/entityV2/shared/tabs/Documentation/components/CompactMarkdownViewer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const ShowMoreWrapper = styled.div`
1616
const MarkdownContainer = styled.div<{ lineLimit?: number | null }>`
1717
max-width: 100%;
1818
position: relative;
19+
flex: 1;
1920
${(props) =>
2021
props.lineLimit &&
2122
props.lineLimit <= 1 &&
@@ -36,6 +37,7 @@ const MarkdownViewContainer = styled.div<{ scrollableY: boolean }>`
3637
word-wrap: break-word;
3738
overflow-x: hidden;
3839
overflow-y: ${(props) => (props.scrollableY ? 'auto' : 'hidden')};
40+
flex: 1;
3941
`;
4042

4143
const CompactEditor = styled(Editor)<{ limit: number | null; customStyle?: React.CSSProperties }>`

0 commit comments

Comments
 (0)