Skip to content

Commit

Permalink
Inset boxes to account for the fact that asset nodes are actually groups
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Mar 19, 2024
1 parent 42f175b commit 10e8621
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const AssetColumnsGroupNode = ({
height: number;
}) => {
return (
<AssetInsetForHoverEffect>
<AssetInsetForHoverEffect style={{marginLeft: 12, marginRight: 12}}>
<AssetNodeContainer $selected={selected}>
<div style={{minHeight: 24}} />
<AssetNodeBox $selected={selected} $isSource={definition.isSource} $noScale>
Expand All @@ -46,13 +46,15 @@ export const AssetColumnNode = ({
selected: boolean;
}) => {
return (
<Box style={{width: '100%', height: 32}} flex={{direction: 'column'}}>
<Box margin={{horizontal: 12}} style={{height: 32}} flex={{direction: 'column'}}>
<Tooltip key={column.name} content={column.description || 'No description provided'}>
<ColumnLink
to={assetDetailsPathForKey(assetKey, {view: 'lineage', column: column.name})}
$selected={selected}
>
<Caption>{column.name}</Caption>
<Caption style={{whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'}}>
{column.name}
</Caption>
<TypeTag type={column.type || ''} />
</ColumnLink>
</Tooltip>
Expand Down

0 comments on commit 10e8621

Please sign in to comment.