Skip to content

Commit

Permalink
[#3688] Small fixes in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Mar 13, 2024
1 parent bed8118 commit e045f71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const ObjectsApiVariableConfigurationEditor = ({variable}) => {
/>
</a>
{jsonSchemaVisible && (
<pre>
<pre style={{marginTop: '1em'}}>
{loading || !mappedVariable.targetPath
? 'N/A'
: JSON.stringify(getTargetPath(mappedVariable.targetPath).jsonSchema, null, 2)}
Expand Down Expand Up @@ -236,7 +236,7 @@ TargetPathSelect.propTypes = {
};

const TargetPathDisplay = ({target}) => {
const path = target.targetPath.join(' > ');
const path = target.targetPath.length ? target.targetPath.join(' > ') : '/ (root)';
return (
<FormattedMessage
description="Representation of a JSON Schema target path"
Expand Down
4 changes: 4 additions & 0 deletions src/openforms/scss/admin/themes/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@
.formio-button-add-another {
color: var(--body-fg) !important;
}

pre {
color: var(--body-fg);
}
}

@mixin tinymce {
Expand Down

0 comments on commit e045f71

Please sign in to comment.