Skip to content

Commit

Permalink
Fixed the UI issue: Height issue of editor and The Spacing issue betw…
Browse files Browse the repository at this point in the history
…een logo and description (datahub-project#4300)
  • Loading branch information
Ankit-Keshari-Vituity authored and maggiehays committed Aug 1, 2022
1 parent 1277a8c commit 7353557
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const ContentContainer = styled.div`
const HeaderAndTabs = styled.div`
flex-basis: 70%;
min-width: 640px;
height: 100%;
`;
const HeaderAndTabsFlex = styled.div`
display: flex;
Expand Down Expand Up @@ -244,7 +245,7 @@ export const EntityProfile = <T, U>({
defaultSize={window.innerWidth - 400}
resizerStyle={resizerStyles}
style={{
height: 'auto',
height: '100%',
overflow: 'auto',
}}
>
Expand Down
9 changes: 7 additions & 2 deletions datahub-web-react/src/app/preview/DefaultPreviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import NoMarkdownViewer from '../entity/shared/components/styled/StripMarkdownTe
import { getNumberWithOrdinal } from '../entity/shared/utils';
import { useEntityData } from '../entity/shared/EntityContext';

const LogoContainer = styled.div`
padding-right: 8px;
`;

const PreviewContainer = styled.div`
display: flex;
width: 100%;
Expand Down Expand Up @@ -201,8 +205,9 @@ export default function DefaultPreviewCard({
<TitleContainer>
<Link to={url}>
<PlatformInfo>
{(logoUrl && <PreviewImage preview={false} src={logoUrl} alt={platform || ''} />) ||
logoComponent}
{(logoUrl && <PreviewImage preview={false} src={logoUrl} alt={platform || ''} />) || (
<LogoContainer>{logoComponent}</LogoContainer>
)}
{platform && <PlatformText>{platform}</PlatformText>}
{(logoUrl || logoComponent || platform) && <PlatformDivider />}
{typeIcon && <TypeIcon>{typeIcon}</TypeIcon>}
Expand Down

0 comments on commit 7353557

Please sign in to comment.