ColorPicker: Fixed height when switching tabs (#103304)

* ColorPicker: fixed height when switching tabs

Fixed the component's height by setting a consistent height and adding margin.
Also added a test to ensure the component heights remain nearly identical when switching tabs.

Fix #99675

* ColorPickerPopover: Fixed height for popover content and allowed overflow. #99675

* ColorPickerPopover : Fix formatting suggested by linter.

* ColorPickerPopover: Remove redundant height test when switching tabs

* ColorPickerPopover: Remove overflowY style from popover container

* ColorPicker: Remove unnecessary marginTop from SpectrumPalette styles
This commit is contained in:
Daniel Alvo
2025-04-04 17:19:08 +03:00
committed by GitHub
parent b1490a10e8
commit d16dbc5ac9
@@ -151,6 +151,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme2) => {
width: '246px',
fontSize: theme.typography.bodySmall.fontSize,
minHeight: '184px',
height: '290px',
padding: theme.spacing(1),
display: 'flex',
flexDirection: 'column',