@@ -84,16 +92,24 @@ const RecentlyDeletedPage = memo(() => {
const getStyles = (theme: GrafanaTheme2) => ({
pageContents: css({
- display: 'grid',
- gridTemplateRows: 'auto auto auto 1fr',
+ display: 'flex',
+ flexDirection: 'column',
+ gap: theme.spacing(1),
height: '100%',
- rowGap: theme.spacing(1),
}),
// AutoSizer needs an element to measure the full height available
subView: css({
height: '100%',
}),
+
+ filters: css({
+ display: 'none',
+
+ [theme.breakpoints.up('md')]: {
+ display: 'block',
+ },
+ }),
});
RecentlyDeletedPage.displayName = 'RecentlyDeletedPage';
diff --git a/public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx b/public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx
index ecc96464c2a..5942fe4a517 100644
--- a/public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx
+++ b/public/app/features/browse-dashboards/components/BrowseActions/BrowseActions.tsx
@@ -1,9 +1,7 @@
-import { css } from '@emotion/css';
import { useMemo } from 'react';
-import { GrafanaTheme2 } from '@grafana/data';
import { config, reportInteraction } from '@grafana/runtime';
-import { Button, Tooltip, useStyles2 } from '@grafana/ui';
+import { Button, Stack, Tooltip } from '@grafana/ui';
import appEvents from 'app/core/app_events';
import { t, Trans } from 'app/core/internationalization';
import { useSearchStateManager } from 'app/features/search/state/SearchStateManager';
@@ -20,7 +18,6 @@ import { MoveModal } from './MoveModal';
export interface Props {}
export function BrowseActions() {
- const styles = useStyles2(getStyles);
const dispatch = useDispatch();
const selectedItems = useActionSelectionState();
const [deleteItems] = useDeleteItemsMutation();
@@ -87,7 +84,7 @@ export function BrowseActions() {
);
return (
-
+
{moveIsInvalid ? (
{moveButton}
@@ -99,19 +96,10 @@ export function BrowseActions() {
-
+
);
}
-const getStyles = (theme: GrafanaTheme2) => ({
- row: css({
- display: 'flex',
- flexDirection: 'row',
- gap: theme.spacing(1),
- marginBottom: theme.spacing(2),
- }),
-});
-
const actionMap = {
move: 'grafana_manage_dashboards_item_moved',
delete: 'grafana_manage_dashboards_item_deleted',
diff --git a/public/app/features/browse-dashboards/components/BrowseFilters.tsx b/public/app/features/browse-dashboards/components/BrowseFilters.tsx
index f7f8554d731..a34c47806df 100644
--- a/public/app/features/browse-dashboards/components/BrowseFilters.tsx
+++ b/public/app/features/browse-dashboards/components/BrowseFilters.tsx
@@ -6,22 +6,20 @@ export function BrowseFilters() {
const [searchState, stateManager] = useSearchStateManager();
return (
-
+
);
}
diff --git a/public/app/features/browse-dashboards/components/RecentlyDeletedActions.tsx b/public/app/features/browse-dashboards/components/RecentlyDeletedActions.tsx
index acabd5e7391..f199544539f 100644
--- a/public/app/features/browse-dashboards/components/RecentlyDeletedActions.tsx
+++ b/public/app/features/browse-dashboards/components/RecentlyDeletedActions.tsx
@@ -1,9 +1,7 @@
-import { css } from '@emotion/css';
import { useMemo } from 'react';
-import { GrafanaTheme2 } from '@grafana/data/';
import { reportInteraction } from '@grafana/runtime';
-import { Button, useStyles2 } from '@grafana/ui';
+import { Button, Stack } from '@grafana/ui';
import { GENERAL_FOLDER_UID } from 'app/features/search/constants';
import appEvents from '../../../core/app_events';
@@ -18,8 +16,6 @@ import { PermanentlyDeleteModal } from './PermanentlyDeleteModal';
import { RestoreModal } from './RestoreModal';
export function RecentlyDeletedActions() {
- const styles = useStyles2(getStyles);
-
const dispatch = useDispatch();
const selectedItemsState = useActionSelectionState();
const [, stateManager] = useRecentlyDeletedStateManager();
@@ -112,26 +108,13 @@ export function RecentlyDeletedActions() {
};
return (
-
+
-
+
);
}
-
-const getStyles = (theme: GrafanaTheme2) => ({
- row: css({
- display: 'flex',
- flexDirection: 'row',
- gap: theme.spacing(1),
- margin: theme.spacing(2, 0),
-
- [theme.breakpoints.up('md')]: {
- marginTop: 0,
- },
- }),
-});
diff --git a/public/app/features/search/page/components/ActionRow.tsx b/public/app/features/search/page/components/ActionRow.tsx
index 0035f508f9d..631b4167d5b 100644
--- a/public/app/features/search/page/components/ActionRow.tsx
+++ b/public/app/features/search/page/components/ActionRow.tsx
@@ -76,7 +76,7 @@ export const ActionRow = ({
: [];
return (
-
+
{config.featureToggles.panelTitleSearch && (
@@ -129,7 +129,7 @@ export const ActionRow = ({
isClearable
/>
-
+
);
};
@@ -137,21 +137,10 @@ ActionRow.displayName = 'ActionRow';
export const getStyles = (theme: GrafanaTheme2) => {
return {
- actionRow: css`
- display: none;
-
- ${theme.breakpoints.up('md')} {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding-bottom: ${theme.spacing(2)};
- width: 100%;
- }
- `,
- checkboxWrapper: css`
- label {
- line-height: 1.2;
- }
- `,
+ checkboxWrapper: css({
+ label: {
+ lineHeight: '1.2',
+ },
+ }),
};
};