mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-04 21:46:30 +00:00
fix(ui) Fix weird indents on schema table descriptions (#14652)
This commit is contained in:
parent
acd7236290
commit
f8a401ddd1
@ -98,6 +98,7 @@ const StyledViewer = styled(Editor)`
|
||||
const DescriptionWrapper = styled.span`
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
`;
|
||||
|
||||
const AddModalWrapper = styled.div``;
|
||||
@ -219,13 +220,13 @@ export default function DescriptionField({
|
||||
customStyle={{ fontSize: '12px' }}
|
||||
scrollableY={false}
|
||||
/>
|
||||
{isSchemaEditable && isEdited && <EditedLabel>(edited)</EditedLabel>}
|
||||
</DescriptionWrapper>
|
||||
</Tooltip>
|
||||
{/* </StripMarkdownText> */}
|
||||
</>
|
||||
)
|
||||
)}
|
||||
{isSchemaEditable && isEdited && <EditedLabel>(edited)</EditedLabel>}
|
||||
{showAddModal && (
|
||||
<AddModalWrapper onClick={(e) => e.stopPropagation()}>
|
||||
<UpdateDescriptionModal
|
||||
|
@ -16,6 +16,7 @@ const ShowMoreWrapper = styled.div`
|
||||
const MarkdownContainer = styled.div<{ lineLimit?: number | null }>`
|
||||
max-width: 100%;
|
||||
position: relative;
|
||||
flex: 1;
|
||||
${(props) =>
|
||||
props.lineLimit &&
|
||||
props.lineLimit <= 1 &&
|
||||
@ -36,6 +37,7 @@ const MarkdownViewContainer = styled.div<{ scrollableY: boolean }>`
|
||||
word-wrap: break-word;
|
||||
overflow-x: hidden;
|
||||
overflow-y: ${(props) => (props.scrollableY ? 'auto' : 'hidden')};
|
||||
flex: 1;
|
||||
`;
|
||||
|
||||
const CompactEditor = styled(Editor)<{ limit: number | null; customStyle?: React.CSSProperties }>`
|
||||
|
Loading…
x
Reference in New Issue
Block a user