mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: Fix overflow issue with folder view (#49723)
This commit is contained in:
parent
5f6b23e45a
commit
17d0133008
@ -22,12 +22,12 @@ export interface Props {
|
|||||||
export default function DashboardSearch({ onCloseSearch }: Props) {
|
export default function DashboardSearch({ onCloseSearch }: Props) {
|
||||||
if (config.featureToggles.panelTitleSearch) {
|
if (config.featureToggles.panelTitleSearch) {
|
||||||
// TODO: "folder:current" ????
|
// TODO: "folder:current" ????
|
||||||
return <DashbaordSearchNEW onCloseSearch={onCloseSearch} />;
|
return <DashboardSearchNew onCloseSearch={onCloseSearch} />;
|
||||||
}
|
}
|
||||||
return <DashboardSearchOLD onCloseSearch={onCloseSearch} />;
|
return <DashboardSearchOLD onCloseSearch={onCloseSearch} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
function DashbaordSearchNEW({ onCloseSearch }: Props) {
|
function DashboardSearchNew({ onCloseSearch }: Props) {
|
||||||
const styles = useStyles2(getStyles);
|
const styles = useStyles2(getStyles);
|
||||||
const { query, onQueryChange } = useSearchQuery({});
|
const { query, onQueryChange } = useSearchQuery({});
|
||||||
|
|
||||||
@ -137,6 +137,8 @@ const getStyles = stylesFactory((theme: GrafanaTheme2) => {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
container: css`
|
container: css`
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: ${theme.spacing(2)};
|
padding: ${theme.spacing(2)};
|
||||||
@ -162,6 +164,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme2) => {
|
|||||||
search: css`
|
search: css`
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: ${theme.spacing(2, 0, 3, 0)};
|
padding: ${theme.spacing(2, 0, 3, 0)};
|
||||||
`,
|
`,
|
||||||
|
@ -108,7 +108,10 @@ const getStyles = (theme: GrafanaTheme2) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: ${theme.v1.colors.panelBg};
|
background: ${theme.v1.colors.panelBg};
|
||||||
border-bottom: solid 1px ${theme.v1.colors.border2};
|
|
||||||
|
&:not(:last-child) {
|
||||||
|
border-bottom: solid 1px ${theme.v1.colors.border2};
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
sectionItems: css`
|
sectionItems: css`
|
||||||
margin: 0 24px 0 32px;
|
margin: 0 24px 0 32px;
|
||||||
|
Loading…
Reference in New Issue
Block a user