Skip to content

Commit

Permalink
fix(ui): update default preview card description text (datahub-projec…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamThakre authored and maggiehays committed Aug 1, 2022
1 parent 9b92e9a commit b9892c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import styled from 'styled-components';
const RemoveMarkdownContainer = styled.div`
display: block;
overflow-wrap: break-word;
word-wrap: break-word;
overflow-x: hidden;
overflow-y: auto;
white-space: nowrap;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
`;

export type Props = {
Expand Down
4 changes: 2 additions & 2 deletions datahub-web-react/src/app/preview/DefaultPreviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default function DefaultPreviewCard({
}
return (
<PreviewContainer data-testid={dataTestID}>
<div>
<div style={{ width: '100%' }}>
<TitleContainer>
<Link to={url}>
<PlatformInfo>
Expand Down Expand Up @@ -249,7 +249,7 @@ export default function DefaultPreviewCard({
</TitleContainer>
{description && description.length > 0 && (
<DescriptionContainer>
<NoMarkdownViewer limit={200}>{description}</NoMarkdownViewer>
<NoMarkdownViewer limit={250}>{description}</NoMarkdownViewer>
</DescriptionContainer>
)}
<TagContainer>
Expand Down
1 change: 1 addition & 0 deletions datahub-web-react/src/app/search/SearchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const FiltersContainer = styled.div`
const ResultContainer = styled.div`
flex: 1;
margin-bottom: 20px;
max-width: calc(100% - 260px);
`;

const PaginationControlContainer = styled.div`
Expand Down

0 comments on commit b9892c7

Please sign in to comment.