Fix plus button padding on empty dock

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-03-18 13:09:29 +03:00
1 parent a198b03875
commit de9646122c
3 files changed
+9 -1

No files matched your search

@@ -15,6 +15,10 @@
display: flex;
overflow: hidden;
&:empty {
display: none;
}
&:global(.scrollable) {
overflow: auto;
overflow-x: overlay; /* Set scrollbar inside content area */
+4
View File
@@ -57,6 +57,10 @@
min-height: $unit * 4;
padding-left: $padding;
user-select: none;
&.pl-0 {
padding-left: 0;
}
}
}
+1 -1
View File
@@ -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()}>