mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix plus button padding on empty dock
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
a198b03875
commit
de9646122c
@ -15,6 +15,10 @@
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:global(.scrollable) {
|
||||
overflow: auto;
|
||||
overflow-x: overlay; /* Set scrollbar inside content area */
|
||||
|
||||
@ -57,6 +57,10 @@
|
||||
min-height: $unit * 4;
|
||||
padding-left: $padding;
|
||||
user-select: none;
|
||||
|
||||
&.pl-0 {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -157,7 +157,7 @@ class NonInjectedDock extends React.Component<DockProps & Dependencies> {
|
||||
autoFocus={isOpen}
|
||||
onChangeTab={this.onChangeTab}
|
||||
/>
|
||||
<div className="toolbar flex gaps align-center box grow">
|
||||
<div className={cssNames("toolbar flex gaps align-center box grow", { "pl-0": tabs.length == 0 })}>
|
||||
<div className="dock-menu box grow">
|
||||
<MenuActions usePortal triggerIcon={{ material: "add", className: "new-dock-tab", tooltip: "New tab" }} closeOnScroll={false}>
|
||||
<MenuItem className="create-terminal-tab" onClick={() => this.props.createTerminalTab()}>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user