diff --git a/public/app/core/components/FolderFilter/FolderFilter.tsx b/public/app/core/components/FolderFilter/FolderFilter.tsx
index 37cc3e04774..8d149451713 100644
--- a/public/app/core/components/FolderFilter/FolderFilter.tsx
+++ b/public/app/core/components/FolderFilter/FolderFilter.tsx
@@ -1,7 +1,7 @@
import React, { useCallback, useMemo, useState } from 'react';
import { css } from '@emotion/css';
import debounce from 'debounce-promise';
-import { AsyncMultiSelect, Icon, useStyles2 } from '@grafana/ui';
+import { AsyncMultiSelect, Icon, Button, useStyles2 } from '@grafana/ui';
import { GrafanaTheme2, SelectableValue } from '@grafana/data';
import { FolderInfo, PermissionLevelString } from 'app/types';
@@ -44,9 +44,16 @@ export function FolderFilter({ onChange: propsOnChange, maxMenuHeight }: FolderF
return (
{value.length > 0 && (
-
onChange([])}>
+
+
)}
{value.length > 0 && (
- onChange([])}>
+
+
)}
} aria-label="Panel Type filter" />
@@ -70,17 +77,10 @@ function getStyles(theme: GrafanaTheme2) {
`,
clear: css`
label: clear;
- text-decoration: underline;
font-size: ${theme.spacing(1.5)};
position: absolute;
- top: -${theme.spacing(2.75)};
+ top: -${theme.spacing(4.5)};
right: 0;
- cursor: pointer;
- color: ${theme.colors.text.link};
-
- &:hover {
- color: ${theme.colors.text.maxContrast};
- }
`,
};
}
diff --git a/public/app/features/library-panels/components/LibraryPanelsSearch/LibraryPanelsSearch.tsx b/public/app/features/library-panels/components/LibraryPanelsSearch/LibraryPanelsSearch.tsx
index fa38ae16c24..728db2ca9e3 100644
--- a/public/app/features/library-panels/components/LibraryPanelsSearch/LibraryPanelsSearch.tsx
+++ b/public/app/features/library-panels/components/LibraryPanelsSearch/LibraryPanelsSearch.tsx
@@ -66,18 +66,23 @@ export const LibraryPanelsSearch = ({
placeholder={'Search by name or description'}
width={0}
/>
-
- {showSort && (
-
- )}
-
- {showFolderFilter && }
- {showPanelFilter && }
+
+
+ {showSort && (
+
+ )}
+
+ {showFolderFilter && }
+ {showPanelFilter && }
+
-
+
-
+
@@ -136,7 +141,13 @@ function getStyles(theme: GrafanaTheme2) {
display: flex;
justify-content: space-between;
width: 100%;
- margin-top: ${theme.spacing(1.5)}; // Clear types link
+ margin-top: ${theme.spacing(2)}; // Clear types link
+ `,
+ tightButtonRow: css`
+ display: flex;
+ justify-content: space-between;
+ width: 100%;
+ margin-top: ${theme.spacing(4)}; // Clear types link
`,
tightFilter: css`
flex-grow: 1;