Skip to content

Commit

Permalink
style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed May 8, 2024
1 parent 2365c72 commit 85750bb
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions js_modules/dagster-ui/packages/ui-core/src/code-links/CodeLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,36 +41,18 @@ export const CodeLink = ({codeLinkData}: {codeLinkData: CodeReferencesMetadataEn
const codeLink = getCodeReferenceLink(codeLinkProtocol, source);
window.open(codeLink, '_blank');
}}
icon={<Icon name="open_in_new" />}
/>
))}
</Menu>
}
>
<Button
icon={<Icon name="expand_more" />}
style={{
minWidth: 'initial',
borderTopLeftRadius: 0,
borderBottomLeftRadius: 0,
marginLeft: '-1px',
}}
>
Open in editor
</Button>
<Button rightIcon={<Icon name="expand_more" />}>Open in editor</Button>
</Popover>
) : (
<ExternalAnchorButton
icon={<Icon name="open_in_new" />}
href={getCodeReferenceLink(codeLinkProtocol, sources[0] as SourceLocation)}
style={
hasMultipleCodeSources
? {
borderTopRightRadius: 0,
borderBottomRightRadius: 0,
borderRight: '0px',
}
: {}
}
>
Open {getCodeReferenceEntryLabel(sources[0] as SourceLocation)} in editor
</ExternalAnchorButton>
Expand Down

0 comments on commit 85750bb

Please sign in to comment.