Commit 93a4b8e8 by Torkel Ödegaard Committed by GitHub

TimePicker: Fix position and responsive behavior (#26570)

* TimePicker: Fix position and responsive behavior

* Updated snapshots
parent 96bc16c6
...@@ -22,18 +22,12 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => { ...@@ -22,18 +22,12 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
z-index: ${theme.zIndex.modal}; z-index: ${theme.zIndex.modal};
width: 546px; width: 546px;
top: 116%; top: 116%;
margin-left: -322px;
border-radius: 2px; border-radius: 2px;
border: 1px solid ${containerBorder}; border: 1px solid ${containerBorder};
right: 0;
@media only screen and (max-width: ${theme.breakpoints.lg}) { @media only screen and (max-width: ${theme.breakpoints.lg}) {
width: 218px; width: 262px;
margin-left: 6px;
}
@media only screen and (max-width: ${theme.breakpoints.sm}) {
width: 264px;
margin-left: -100px;
} }
`, `,
body: css` body: css`
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
exports[`TimePickerContent renders correctly in full screen 1`] = ` exports[`TimePickerContent renders correctly in full screen 1`] = `
<div <div
className="css-1py9bjs" className="css-ajr8sn"
> >
<div <div
className="css-ooqtr4" className="css-ooqtr4"
...@@ -103,7 +103,7 @@ exports[`TimePickerContent renders correctly in full screen 1`] = ` ...@@ -103,7 +103,7 @@ exports[`TimePickerContent renders correctly in full screen 1`] = `
exports[`TimePickerContent renders correctly in narrow screen 1`] = ` exports[`TimePickerContent renders correctly in narrow screen 1`] = `
<div <div
className="css-1py9bjs" className="css-ajr8sn"
> >
<div <div
className="css-ooqtr4" className="css-ooqtr4"
...@@ -200,7 +200,7 @@ exports[`TimePickerContent renders correctly in narrow screen 1`] = ` ...@@ -200,7 +200,7 @@ exports[`TimePickerContent renders correctly in narrow screen 1`] = `
exports[`TimePickerContent renders recent absolute ranges correctly 1`] = ` exports[`TimePickerContent renders recent absolute ranges correctly 1`] = `
<div <div
className="css-1py9bjs" className="css-ajr8sn"
> >
<div <div
className="css-ooqtr4" className="css-ooqtr4"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment