Skip to content

Commit

Permalink
align fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed Oct 2, 2023
1 parent 18d4760 commit 5a3cbd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ export const DefaultItemTemplate: React.FC<DefaultItemTemplateProps> = (props) =
}

return (
<ListItem key={content.Id} button={false}>
<ListItem style={props.actionName === 'browse' ? { padding: 0 } : undefined} key={content.Id} button={false}>
{content.Type ? renderIcon(content) : null}
<ListItemText
primary={content.DisplayName}
style={content.Id < 0 ? { textAlign: 'right', paddingRight: 16 } : { textAlign: 'left' }}
/>
<ListItemText primary={content.DisplayName} style={{ textAlign: 'left', paddingRight: 15 }} />
{props.actionName && props.actionName !== 'browse' && !props.readOnly ? (
<ListItemSecondaryAction>
{content.Id > 0 ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const styles = {
},
listContainer: {
display: 'inline-block',
marginTop: 10,
minWidth: 250,
padding: 0,
},
}

Expand Down Expand Up @@ -234,9 +234,9 @@ export const ReferenceGrid: React.FC<ReferenceGridProps> = (props) => {
default: {
return (
<FormControl style={styles.root as any}>
<InputLabel shrink={true} htmlFor={props.settings.Name}>
<Typography variant="caption" gutterBottom={true}>
{props.settings.DisplayName}
</InputLabel>
</Typography>
<FormGroup>
{fieldValue ? (
<List dense={true} style={styles.listContainer}>
Expand Down

0 comments on commit 5a3cbd9

Please sign in to comment.