mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 16:45:43 -06:00
Connect Data: Make search bar sticky (#61529)
This commit is contained in:
parent
67c02f660a
commit
24ef778f4d
@ -1,13 +1,21 @@
|
||||
import { css } from '@emotion/css';
|
||||
import React, { FC } from 'react';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { Icon, Input, useStyles2 } from '@grafana/ui';
|
||||
|
||||
const getStyles = () => ({
|
||||
const getStyles = (theme: GrafanaTheme2) => ({
|
||||
searchContainer: css`
|
||||
display: flex;
|
||||
margin: 16px 0;
|
||||
justify-content: space-between;
|
||||
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background-color: ${theme.colors.background.primary};
|
||||
z-index: 2;
|
||||
padding: ${theme.spacing(2)};
|
||||
margin: 0 -${theme.spacing(2)};
|
||||
`,
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user