Fixed some more styling issues broken due to JSS changes. #7363

This commit is contained in:
Yogesh Mahajan 2024-06-20 17:18:38 +05:30 committed by GitHub
parent a60cbf00c8
commit 6410ae5f69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 5 deletions

View File

@ -200,7 +200,7 @@ export default function jsonEditorOverride(theme) {
/* Set expand icon to none*/ /* Set expand icon to none*/
'div.jsoneditor-tree button.jsoneditor-button:focus': { 'div.jsoneditor-tree button.jsoneditor-button:focus': {
backgroundColor: theme.palette.text.primary + ' !important', backgroundColor: theme.palette.background.default + ' !important',
outline: 'none', outline: 'none',
}, },
@ -252,7 +252,7 @@ export default function jsonEditorOverride(theme) {
}, },
'& .ace_marker-layer .ace_selected-word, & .ace_marker-layer .ace_selection': { '& .ace_marker-layer .ace_selected-word, & .ace_marker-layer .ace_selection': {
border: `1px solid ${theme.palette.primary.light}`, border: `1px solid ${theme.palette.primary.light}`,
backgroundColor: theme.otherVars.editor.selectionBg,
}, },
@ -302,13 +302,17 @@ export default function jsonEditorOverride(theme) {
fontFamily: theme.typography.fontFamily + ' !important', fontFamily: theme.typography.fontFamily + ' !important',
fontSize: '.875rem !important', fontSize: '.875rem !important',
fontWeight: 'bold', fontWeight: 'bold',
backgroundColor: theme.palette.primary.main + ' !important', backgroundColor: theme.palette.background.default + ' !important',
color: theme.palette.text.primary, color: theme.palette.text.primary + ' !important',
borderBottom: `1px solid ${theme.otherVars.borderColor}`,
}, },
/* Body */ /* Body */
'.pico-content': { '.pico-content': {
backgroundColor: theme.palette.background.default + ' !important', backgroundColor: theme.palette.background.default + ' !important',
'& .pico-close':{
color: theme.palette.text.primary + ' !important',
}
}, },
/* Disable links */ /* Disable links */

View File

@ -20,7 +20,7 @@ const StyledTable = styled('table')(({theme})=>({
'& tbody td, & thead th': { '& tbody td, & thead th': {
margin: 0, margin: 0,
padding: theme.spacing(0.5), padding: theme.spacing(0.5),
border: '1px solid '+theme.otherVars.borderColor, border: '1px solid '+ theme.otherVars.borderColor,
borderBottom: 'none', borderBottom: 'none',
position: 'relative', position: 'relative',
overflow: 'hidden', overflow: 'hidden',

View File

@ -45,6 +45,10 @@ const StyledBox = styled(Box)(({theme}) => ({
flexDirection: 'column', flexDirection: 'column',
height: '100%', height: '100%',
minHeight: 0, minHeight: 0,
'& .DebuggerArgument-schema': {
padding: 0 + ' !important',
backgroundColor: theme.palette.background.default,
}
}, },
'& .DebuggerArgument-footer': { '& .DebuggerArgument-footer': {
borderTop: `1px solid ${theme.otherVars.inputBorderColor} !important`, borderTop: `1px solid ${theme.otherVars.inputBorderColor} !important`,
@ -810,6 +814,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
showFooter={false} showFooter={false}
isTabView={false} isTabView={false}
Notifier={pgAdmin.Browser.notifier} Notifier={pgAdmin.Browser.notifier}
formClassName='DebuggerArgument-schema'
onDataChange={(isChanged, changedData) => { onDataChange={(isChanged, changedData) => {
let isValid = false; let isValid = false;
let skipStep = false; let skipStep = false;

View File

@ -82,6 +82,7 @@ const StyledBox = styled(Box)(({theme}) => ({
}, },
'&[aria-selected=true][aria-colindex="1"]': { '&[aria-selected=true][aria-colindex="1"]': {
outlineWidth: 0, outlineWidth: 0,
backgroundColor: theme.palette.default.main + ' !important'
}, },
'& .ResultGridComponent-cellExpand': { '& .ResultGridComponent-cellExpand': {
display: 'table', display: 'table',