Modal: Sticky position buttons (#111991)

sticky position modal buttons
This commit is contained in:
Ashley Harrison 2025-10-08 11:13:01 +01:00 committed by GitHub
parent 54faaba0b0
commit 8bc31a4da5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 5 deletions

View File

@ -75,11 +75,17 @@ export const getModalStyles = (theme: GrafanaTheme2) => {
}),
modalContent: css({
overflow: 'auto',
padding: theme.spacing(3),
padding: theme.spacing(3, 3, 0, 3),
marginBottom: theme.spacing(3),
scrollbarWidth: 'thin',
width: '100%',
}),
modalButtonRow: css({
paddingTop: theme.spacing(3),
background: theme.colors.background.primary,
position: 'sticky',
bottom: 0,
paddingTop: theme.spacing(2),
zIndex: 1,
}),
};
};

View File

@ -186,9 +186,6 @@ export function ValueMappingsEditorModal({ value, onChange, onClose, showIconPic
export const getStyles = (theme: GrafanaTheme2) => ({
tableWrap: css({
// TODO remove maxHeight/overflow when Modal.ButtonRow is sticky
maxHeight: 'calc(80vh - 170px)',
overflow: 'auto',
minHeight: '40px',
}),