Skip to content

Commit b18d540

Browse files
committed
frontend/PluginSettings: Make the Save button always visible in the page
Otherwise, when there are many plugins in the page, the button is pushed down and can appear as if there is no Save button.
1 parent 7dd6928 commit b18d540

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

frontend/src/components/App/PluginSettings/PluginSettings.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,20 @@ export function PluginSettingsPure(props: PluginSettingsPureProps) {
421421
/>
422422
</SectionBox>
423423
{enableSave && (
424-
<Box sx={{ display: `flex`, justifyContent: `flex-end`, margin: `5px` }}>
425-
<Button
426-
variant="contained"
427-
color="primary"
428-
sx={{ margin: `5px` }}
429-
onClick={() => onSaveButtonHandler()}
430-
>
424+
<Box
425+
sx={{
426+
position: 'sticky',
427+
bottom: 0,
428+
display: 'flex',
429+
justifyContent: 'flex-end',
430+
padding: '12px 16px',
431+
backgroundColor: theme => theme.palette.background.paper,
432+
borderTop: theme => `1px solid ${theme.palette.divider}`,
433+
zIndex: 10,
434+
margin: '-16px -16px 0 -16px',
435+
}}
436+
>
437+
<Button variant="contained" color="primary" onClick={() => onSaveButtonHandler()}>
431438
{t('translation|Save & Apply')}
432439
</Button>
433440
</Box>

0 commit comments

Comments
 (0)