1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Make terminal tab icon the same as the menu item icon (#5449)

This commit is contained in:
Sebastian Malton 2022-05-30 08:31:33 -07:00 committed by GitHub
parent 827cb8a886
commit 5acfcf1b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -166,11 +166,7 @@ class NonInjectedDock extends React.Component<DockProps & Dependencies> {
closeOnScroll={false}
>
<MenuItem className="create-terminal-tab" onClick={() => this.props.createTerminalTab()}>
<Icon
small
svg="terminal"
size={15}
/>
<Icon small material="terminal" />
Terminal session
</MenuItem>
<MenuItem className="create-resource-tab" onClick={() => this.props.createResourceTab()}>

View File

@ -67,7 +67,6 @@ class NonInjectedTerminalTab<Props extends TerminalTabProps & Dependencies> exte
}
render() {
const tabIcon = <Icon material="terminal"/>;
const className = cssNames("TerminalTab", this.props.className, {
disconnected: this.isDisconnected,
});
@ -78,7 +77,7 @@ class NonInjectedTerminalTab<Props extends TerminalTabProps & Dependencies> exte
<DockTab
{...tabProps}
className={className}
icon={tabIcon}
icon={<Icon material="terminal" />}
moreActions={this.isDisconnected && (
<Icon
small