diff --git a/pkg/ui/workspaces/cluster-ui/src/api/statementsApi.ts b/pkg/ui/workspaces/cluster-ui/src/api/statementsApi.ts
index 38afe8694e1c..f6cfa71c4ac7 100644
--- a/pkg/ui/workspaces/cluster-ui/src/api/statementsApi.ts
+++ b/pkg/ui/workspaces/cluster-ui/src/api/statementsApi.ts
@@ -34,6 +34,8 @@ export type StatementDetailsResponseWithKey = {
};
export type SqlStatsResponse = cockroach.server.serverpb.StatementsResponse;
+export const SqlStatsSortOptions = cockroach.server.serverpb.StatsSortOptions;
+export type SqlStatsSortType = cockroach.server.serverpb.StatsSortOptions;
const FetchStatsMode =
cockroach.server.serverpb.CombinedStatementsStatsRequest.StatsType;
@@ -43,9 +45,6 @@ export type ErrorWithKey = {
key: string;
};
-export const SqlStatsSortOptions = cockroach.server.serverpb.StatsSortOptions;
-export type SqlStatsSortType = cockroach.server.serverpb.StatsSortOptions;
-
export const DEFAULT_STATS_REQ_OPTIONS = {
limit: 100,
sort: SqlStatsSortOptions.SERVICE_LAT,
diff --git a/pkg/ui/workspaces/cluster-ui/src/columnsSelector/columnsSelector.module.scss b/pkg/ui/workspaces/cluster-ui/src/columnsSelector/columnsSelector.module.scss
index 38a7574c7ea1..f249709fd869 100644
--- a/pkg/ui/workspaces/cluster-ui/src/columnsSelector/columnsSelector.module.scss
+++ b/pkg/ui/workspaces/cluster-ui/src/columnsSelector/columnsSelector.module.scss
@@ -6,7 +6,7 @@
}
&__btn {
- height: $line-height--large;
+ height: $line-height--larger;
width: 67px;
font-size: $font-size--small;
}
@@ -36,9 +36,10 @@
}
}
-.float {
+.btn-area {
float: left;
margin-right: 7px;
+ font-size: $font-size--medium;
}
.label {
diff --git a/pkg/ui/workspaces/cluster-ui/src/columnsSelector/columnsSelector.tsx b/pkg/ui/workspaces/cluster-ui/src/columnsSelector/columnsSelector.tsx
index a731fdc76de5..f7a631778c90 100644
--- a/pkg/ui/workspaces/cluster-ui/src/columnsSelector/columnsSelector.tsx
+++ b/pkg/ui/workspaces/cluster-ui/src/columnsSelector/columnsSelector.tsx
@@ -36,6 +36,7 @@ export interface ColumnsSelectorProps {
// options provides the list of available columns and their initial selection state
options: SelectOption[];
onSubmitColumns: (selectedColumns: string[]) => void;
+ size?: "default" | "small";
}
export interface ColumnsSelectorState {
@@ -222,6 +223,7 @@ export default class ColumnsSelector extends React.Component<
render(): React.ReactElement {
const { hide } = this.state;
+ const { size = "default" } = this.props;
const dropdownArea = hide ? hidden : dropdown;
const options = this.getOptions();
const columnsSelected = options.filter(o => o.isSelected);
@@ -230,9 +232,9 @@ export default class ColumnsSelector extends React.Component<
-