Skip to content

Commit 97aa0bb

Browse files
authored
fixed few style issues while adoption testing (#453)
1 parent aa74c9b commit 97aa0bb

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

packages/react-sdk-components/src/components/infra/DashboardFilter/DashboardFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface DashboardFilterProps extends PConnProps {
1919
}
2020

2121
export default function DashboardFilter(props: PropsWithChildren<DashboardFilterProps>) {
22-
const { children = [], name, filterProp, type = '', metadata = null, getPConnect } = props;
22+
const { children, name, filterProp, type = '', metadata = null, getPConnect } = props;
2323
const { current: filterId } = useRef(uuidv4());
2424

2525
const [startDate, setStartDate] = useState(null);

packages/react-sdk-components/src/components/infra/DashboardFilter/filterUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const buildFilterComponents = (getPConnect, allFilters) => {
7777
const filterComponents = allFilters.children.map((filter, index) => createFilterComponent(getPConnect, filter, index));
7878
if (filterComponents && filterComponents.length > 0) {
7979
filterComponents.push(
80-
<Grid>
80+
<Grid style={{ display: 'flex', alignItems: 'center' }}>
8181
<Link
8282
style={{ cursor: 'pointer' }}
8383
onClick={() => {

packages/react-sdk-components/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,9 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
608608
return (
609609
<TableCell key={`head-${displayedColumns[index]}`} className={classes.tableCell}>
610610
{(readOnlyMode || allowEditingInModal) && field.cellRenderer !== 'DeleteIcon' ? (
611-
<div>
611+
<div style={{ display: 'flex' }}>
612612
<TableSortLabel
613+
style={{ width: '75%' }}
613614
active={orderBy === displayedColumns[index]}
614615
direction={orderBy === displayedColumns[index] ? order : 'asc'}
615616
onClick={createSortHandler(displayedColumns[index])}
@@ -621,8 +622,8 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
621622
) : null}
622623
</TableSortLabel>
623624
<MoreIcon
625+
style={{ cursor: 'pointer', zIndex: 1000 }}
624626
id='menu-icon'
625-
className={classes.moreIcon}
626627
onClick={event => {
627628
_menuClick(event, field.name, field.meta.type, field.label);
628629
}}
@@ -706,7 +707,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
706707
})}
707708
</TableBody>
708709
</Table>
709-
{referenceList && referenceList.length === 0 && (
710+
{rowData && rowData.length === 0 && (
710711
<div className='no-records' id='no-records'>
711712
No records found.
712713
</div>

packages/react-sdk-components/src/components/widget/FileUtility/FileUtility/FileUtility.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ export default function FileUtility(props: FileUtilityProps) {
512512
>
513513
<MoreVertIcon />
514514
</IconButton>
515-
<Menu style={{ marginTop: '3rem' }} id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
515+
<Menu id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
516516
<MenuItem style={{ fontSize: '14px' }} onClick={onAddFilesClick}>
517517
{thePConn.getLocalizedValue('Add files', '', '')}
518518
</MenuItem>{' '}

packages/react-sdk-components/src/components/widget/SummaryItem/SummaryItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function SummaryItem(props: SummaryItemProps) {
7373
>
7474
<MoreVertIcon />
7575
</IconButton>
76-
<Menu style={{ marginTop: '3rem' }} id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
76+
<Menu id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
7777
{item.actions &&
7878
item.actions.map(option => (
7979
<MenuItem style={{ fontSize: '14px' }} key={option.id || option.text} onClick={option.onClick}>

0 commit comments

Comments
 (0)