Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -847,58 +847,56 @@ class SkeletonTabView extends React.PureComponent<Props, State> {
>
<Spin />
</Modal>
<Space.Compact className="compact-icons">
<div className="compact-buttons">
<AdvancedSearchPopover
onSelect={this.handleSearchSelect}
data={this.getTreeAndTreeGroupList(trees, treeGroups, orderAttribute)}
searchKey="name"
provideShortcut
targetId={treeTabId}
onSelectAllMatches={this.handleSelectAllMatchingTrees}
>
<ButtonComponent
title="Open the search via CTRL + Shift + F"
className="firstButton"
>
<SearchOutlined />
</ButtonComponent>
</AdvancedSearchPopover>
<ButtonComponent
onClick={this.props.onCreateTree}
title={isEditingDisabled ? isEditingDisabledMessage : "Create new Tree (C)"}
disabled={isEditingDisabled}
>
<i className="fas fa-plus" />
</ButtonComponent>
<ButtonComponent
onClick={this.handleDelete}
title={isEditingDisabled ? isEditingDisabledMessage : "Delete Selected Trees"}
disabled={isEditingDisabled}
>
<i className="far fa-trash-alt" />
</ButtonComponent>
<Space.Compact className="compact-icons compact-wrap">
<AdvancedSearchPopover
onSelect={this.handleSearchSelect}
data={this.getTreeAndTreeGroupList(trees, treeGroups, orderAttribute)}
searchKey="name"
provideShortcut
targetId={treeTabId}
onSelectAllMatches={this.handleSelectAllMatchingTrees}
>
<ButtonComponent
onClick={this.toggleAllTrees}
title="Toggle Visibility of All Trees (1)"
disabled={isEditingDisabled}
title="Open the search via CTRL + Shift + F"
className="firstButton"
>
<i className="fas fa-toggle-on" />
<SearchOutlined />
</ButtonComponent>
<ButtonComponent
onClick={this.toggleInactiveTrees}
title="Toggle Visibility of Inactive Trees (2)"
disabled={isEditingDisabled}
>
<i className="fas fa-toggle-off" />
</AdvancedSearchPopover>
<ButtonComponent
onClick={this.props.onCreateTree}
title={isEditingDisabled ? isEditingDisabledMessage : "Create new Tree (C)"}
disabled={isEditingDisabled}
>
<i className="fas fa-plus" />
</ButtonComponent>
<ButtonComponent
onClick={this.handleDelete}
title={isEditingDisabled ? isEditingDisabledMessage : "Delete Selected Trees"}
disabled={isEditingDisabled}
>
<i className="far fa-trash-alt" />
</ButtonComponent>
<ButtonComponent
onClick={this.toggleAllTrees}
title="Toggle Visibility of All Trees (1)"
disabled={isEditingDisabled}
>
<i className="fas fa-toggle-on" />
</ButtonComponent>
<ButtonComponent
onClick={this.toggleInactiveTrees}
title="Toggle Visibility of Inactive Trees (2)"
disabled={isEditingDisabled}
>
<i className="fas fa-toggle-off" />
</ButtonComponent>
<Dropdown menu={this.getActionsDropdown()} trigger={["click"]}>
<ButtonComponent style={{ overflow: "clip" }} className="lastButton">
More
<DownOutlined />
</ButtonComponent>
<Dropdown menu={this.getActionsDropdown()} trigger={["click"]}>
<ButtonComponent style={{ overflow: "clip" }} className="lastButton">
More
<DownOutlined />
</ButtonComponent>
</Dropdown>
</div>
</Dropdown>
</Space.Compact>
<Space.Compact className="compact-icons compact-items">
<ButtonComponent
Expand Down
22 changes: 6 additions & 16 deletions frontend/stylesheets/trace_view/_right_menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -139,25 +139,15 @@
}
}

.compact-buttons{
display: "inline-flex";
flex-wrap: "wrap";
.compact-wrap {
// Should only be used with antd <Space.Compact>
flex-wrap: wrap;

button{
border-radius: 0px;
margin-inline: -1px;
button{
// Slightly shift buttons up to prevent double borders when wrapping in flex container occurs
margin-top: -1px;
}
}

button.firstButton{
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}

button.lastButton{
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
}

.margin-bottom {
Expand Down