Connect Data: Make search bar sticky (#61529)

pull/61623/head
Ana Ivanov 3 years ago committed by GitHub
parent 67c02f660a
commit 24ef778f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      public/app/features/connections/tabs/ConnectData/Search/Search.tsx

@ -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…
Cancel
Save